1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/test/corpus/diff-summaries/javascript/ternary.json
2016-10-11 11:54:47 -04:00

317 lines
9.6 KiB
JSON

[{
"testCaseDescription": "javascript-ternary-insert-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "ternary.js",
"end": [
1,
26
]
}
},
"summary": "Added the 'condition' ternary expression",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
"sha1": "62499db349bd96eba99a785f67d473de8d5b99e6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bc7b9275011e872401a2c3a8c7c17903cdb56169"
}
,{
"testCaseDescription": "javascript-ternary-replacement-insert-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "ternary.js",
"end": [
1,
51
]
}
},
"summary": "Added the 'x.y' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "ternary.js",
"end": [
2,
26
]
}
},
"summary": "Added the 'condition' ternary expression",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
"sha1": "bc7b9275011e872401a2c3a8c7c17903cdb56169",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b8fea536dd918076cf850567797d069cb7bb324a"
}
,{
"testCaseDescription": "javascript-ternary-delete-insert-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "ternary.js",
"end": [
1,
26
]
}
},
"summary": "Added the 'condition' ternary expression",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "ternary.js",
"end": [
1,
51
]
}
},
"summary": "Deleted the 'x.y' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
"sha1": "b8fea536dd918076cf850567797d069cb7bb324a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ed0eb4f64eb99a1de0578efbea21954d506b78ad"
}
,{
"testCaseDescription": "javascript-ternary-replacement-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "ternary.js",
"end": [
1,
51
]
}
},
"summary": "Added the 'x.y' assignment",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "ternary.js",
"end": [
1,
26
]
}
},
"summary": "Deleted the 'condition' ternary expression",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
"sha1": "ed0eb4f64eb99a1de0578efbea21954d506b78ad",
"gitDir": "test/corpus/repos/javascript",
"sha2": "180368bb326efec93e24d19b6e544eb1c418573b"
}
,{
"testCaseDescription": "javascript-ternary-delete-replacement-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "ternary.js",
"end": [
1,
51
]
}
},
"summary": "Deleted the 'x.y' assignment",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "ternary.js",
"end": [
2,
26
]
}
},
"summary": "Deleted the 'condition' ternary expression",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "ternary.js",
"end": [
2,
51
]
}
},
"summary": "Added the 'x.y' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
"sha1": "180368bb326efec93e24d19b6e544eb1c418573b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c01612a71ed85281bf9c055ad05b6b7ea76377d5"
}
,{
"testCaseDescription": "javascript-ternary-delete-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "ternary.js",
"end": [
1,
26
]
}
},
"summary": "Deleted the 'condition' ternary expression",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
"sha1": "c01612a71ed85281bf9c055ad05b6b7ea76377d5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1d83e7224ad50fbbf8712b8cb674512319d379a0"
}
,{
"testCaseDescription": "javascript-ternary-delete-rest-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "ternary.js",
"end": [
1,
51
]
}
},
"summary": "Deleted the 'x.y' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
"sha1": "1d83e7224ad50fbbf8712b8cb674512319d379a0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "33ac8949dcc8f9f193b6aec3c6d9a5ef26e4bcfd"
}]