mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +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": "95a273f4b11e757c88a02d093c0d3a701f685690",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c834104bb52d61ddd1beca752f798c9303577c72"
|
|
}
|
|
,{
|
|
"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": "c834104bb52d61ddd1beca752f798c9303577c72",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "95454c5409fa84fc30ea251c08b2882b8baf8e31"
|
|
}
|
|
,{
|
|
"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": "95454c5409fa84fc30ea251c08b2882b8baf8e31",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7fd9db6c1274c8b07915da8b34334e5bd00c3a06"
|
|
}
|
|
,{
|
|
"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": "7fd9db6c1274c8b07915da8b34334e5bd00c3a06",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bd3280aec17df26dc6cffe4ab4d3b22b55ff9266"
|
|
}
|
|
,{
|
|
"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": "bd3280aec17df26dc6cffe4ab4d3b22b55ff9266",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "73566f339f1771e80f1fda989b500cfad9166289"
|
|
}
|
|
,{
|
|
"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": "73566f339f1771e80f1fda989b500cfad9166289",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1a2caf0cc2079942b32f207a2eedb8f2ebd5c7cb"
|
|
}
|
|
,{
|
|
"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": "1a2caf0cc2079942b32f207a2eedb8f2ebd5c7cb",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "51d8aff9c58966d750d22ef8f1b1be9d38e7bcce"
|
|
}]
|