mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +03:00
341 lines
11 KiB
JSON
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": "72136f15085dd59d51ce542116b6fba21a73bb2c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f9bf65ddd55c283f5aad6190ef453d552ee023f2"
|
|
}
|
|
,{
|
|
"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": "f9bf65ddd55c283f5aad6190ef453d552ee023f2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "09df0a553ad649da3809d681e6ac1cafcda63db6"
|
|
}
|
|
,{
|
|
"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": "09df0a553ad649da3809d681e6ac1cafcda63db6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e514106de7ee8dc61276282edf308372f239215a"
|
|
}
|
|
,{
|
|
"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": "e514106de7ee8dc61276282edf308372f239215a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "efcdf9c8b887e74df73b4556c23149ef45edbb22"
|
|
}
|
|
,{
|
|
"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": "efcdf9c8b887e74df73b4556c23149ef45edbb22",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e531c49edf12bfbc0d6c502f5e1e172787857127"
|
|
}
|
|
,{
|
|
"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": "e531c49edf12bfbc0d6c502f5e1e172787857127",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4f895a5ac4f5c156d2f0a651decc546498777019"
|
|
}
|
|
,{
|
|
"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": "4f895a5ac4f5c156d2f0a651decc546498777019",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8397e8bab234cfb40d758bd3f508928f7e609eda"
|
|
}]
|