1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/if.json
2016-10-14 12:19:31 -04:00

287 lines
8.4 KiB
JSON

[{
"testCaseDescription": "javascript-if-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Added the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "53c5db9bb39adc5c031b70caef47bd82757e2123",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8fb1783482c65f8dc239cab7cad6d6497444eccb"
}
,{
"testCaseDescription": "javascript-if-replacement-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Added the 'a.b' if statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
19
]
}
},
"summary": "Added the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "8fb1783482c65f8dc239cab7cad6d6497444eccb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "92cb0d73d128e632110d9d2583d1fc1e9cd9bf83"
}
,{
"testCaseDescription": "javascript-if-delete-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
24
]
},
{
"start": [
1,
1
],
"end": [
1,
19
]
}
]
},
"summary": "Replaced the 'a.b' if statement with the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "92cb0d73d128e632110d9d2583d1fc1e9cd9bf83",
"gitDir": "test/corpus/repos/javascript",
"sha2": "71dc340110c3ce7e39042e16f90d25fd3fffdf0d"
}
,{
"testCaseDescription": "javascript-if-replacement-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
19
]
},
{
"start": [
1,
1
],
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'x' if statement with the 'a.b' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "71dc340110c3ce7e39042e16f90d25fd3fffdf0d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fd8fd35219c2e2a30045b55dca614966e6c30cee"
}
,{
"testCaseDescription": "javascript-if-delete-replacement-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted the 'a.b' if statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
19
]
}
},
"summary": "Deleted the 'x' if statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
24
]
}
},
"summary": "Added the 'a.b' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "fd8fd35219c2e2a30045b55dca614966e6c30cee",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c581bf4d28dc96c5f18449df02e0816ff0f780b2"
}
,{
"testCaseDescription": "javascript-if-delete-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Deleted the 'x' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "c581bf4d28dc96c5f18449df02e0816ff0f780b2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e26dadfc17ee4b5a85e166d391ff16fc7e54488d"
}
,{
"testCaseDescription": "javascript-if-delete-rest-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
24
]
}
},
"summary": "Deleted the 'a.b' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "e26dadfc17ee4b5a85e166d391ff16fc7e54488d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c46205f2bb3f15f4d213f86c71ece44db75a6cda"
}]