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/do-while-statement.json
2016-11-01 10:03:25 -05:00

341 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-do-while-statement-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Added the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "ec8ba8297edb4d6d8dbc00d6f028116e0b58abe8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "33549ab5882710be4c88bcfdf659400ce67f5c1d"
}
,{
"testCaseDescription": "javascript-do-while-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Added the 'false' do/while statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Added the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "33549ab5882710be4c88bcfdf659400ce67f5c1d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "969fbb30a28a983aaea07a0caf168258283b9e01"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
18
],
"end": [
1,
29
]
},
{
"start": [
1,
18
],
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'replacement' identifier with the 'insert' identifier in the console.log(insert) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
41
],
"end": [
1,
46
]
},
{
"start": [
1,
36
],
"end": [
1,
40
]
}
]
},
"summary": "Replaced 'false' with 'true' in the true do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "969fbb30a28a983aaea07a0caf168258283b9e01",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b568ea7e0a262c3819571cb8b2b2286eb182583c"
}
,{
"testCaseDescription": "javascript-do-while-statement-replacement-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
18
],
"end": [
1,
24
]
},
{
"start": [
1,
18
],
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'insert' identifier with the 'replacement' identifier in the console.log(replacement) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
36
],
"end": [
1,
40
]
},
{
"start": [
1,
41
],
"end": [
1,
46
]
}
]
},
"summary": "Replaced 'true' with 'false' in the false do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "b568ea7e0a262c3819571cb8b2b2286eb182583c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4ae8d06981390b10da59e0f4c795f7d62606283e"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the 'false' do/while statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Deleted the 'true' do/while statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
48
]
}
},
"summary": "Added the 'false' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "4ae8d06981390b10da59e0f4c795f7d62606283e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f79ad68ff3a0efaed28e9aa75314d2f4705de647"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "f79ad68ff3a0efaed28e9aa75314d2f4705de647",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7472b66a363abaae79b52faab6dff2465746424d"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-rest-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the 'false' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "7472b66a363abaae79b52faab6dff2465746424d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1c17753ae9931d9d5b151bab4498c78c5b31c6c1"
}]