mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +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": "89db44a937a7093bce4f9707fef198d801d1df6c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2446083ac07858819361d2b6f4d56e5acb211e1f"
|
|
}
|
|
,{
|
|
"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": "2446083ac07858819361d2b6f4d56e5acb211e1f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3ef3da8fb378a9e3eb0481df414aeebd601a9c58"
|
|
}
|
|
,{
|
|
"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": "3ef3da8fb378a9e3eb0481df414aeebd601a9c58",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "27d445ebbe6a2d1428363a86b0d8a72f7c3a1fa7"
|
|
}
|
|
,{
|
|
"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": "27d445ebbe6a2d1428363a86b0d8a72f7c3a1fa7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7c22bba4de0d72a6896a92034976544f0cf981d9"
|
|
}
|
|
,{
|
|
"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": "7c22bba4de0d72a6896a92034976544f0cf981d9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9a4e4fb16b79c73d23f19d5e01de22370f426681"
|
|
}
|
|
,{
|
|
"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": "9a4e4fb16b79c73d23f19d5e01de22370f426681",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cf9946632e343e7067c51a06f3e18f62fabbdb54"
|
|
}
|
|
,{
|
|
"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": "cf9946632e343e7067c51a06f3e18f62fabbdb54",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "67ef9e8da7b64fdbdf370b43e4c780e28ae9efdf"
|
|
}]
|