mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
395 lines
13 KiB
JSON
395 lines
13 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-for-of-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'item of items' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "f9d31193b2e0de3664fd90baf4bf0f036eed7805",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fdb12c1fe737ef373806b4986172a03007e238c1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'thing of things' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'item of items' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "fdb12c1fe737ef373806b4986172a03007e238c1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "940950f103116ec45a222f21de8cdbcc49f48795"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'thing' identifier with the 'item' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
18
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'things' identifier with the 'items' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
37
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the process(item) function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "940950f103116ec45a222f21de8cdbcc49f48795",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "682b758ed60acc11b5c83d746f3822ef9e4f870c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'item' identifier with the 'thing' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
18
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'items' identifier with the 'things' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
37
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the process(thing) function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "682b758ed60acc11b5c83d746f3822ef9e4f870c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "661909ac91a22c549b5ba5e40a492192452e9126"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'thing of things' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'item of items' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'thing of things' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "661909ac91a22c549b5ba5e40a492192452e9126",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9e29ecdff2b47416f53acc8e1acd4d51415dedf8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'item of items' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "9e29ecdff2b47416f53acc8e1acd4d51415dedf8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bbd14a09e7756c7f89efaaa9bfde692fcd16a0e2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'thing of things' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "bbd14a09e7756c7f89efaaa9bfde692fcd16a0e2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a155a2bd652ca5aaa95ea8e31c7eac9662aa07f9"
|
|
}]
|