mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
395 lines
13 KiB
JSON
395 lines
13 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-for-in-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
35
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'thing in things' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "b3571922f92da29e898094166c0af33f94bff605",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "897d709f759d57f757317df0821231c5d0e5db59"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'item in items' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
35
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'thing in things' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "897d709f759d57f757317df0821231c5d0e5db59",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e41f53eed9ef707029d3377700053812b516283f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'item' identifier with the 'thing' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
14
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
15
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'items' identifier with the 'things' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
23
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
30
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the thing() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "e41f53eed9ef707029d3377700053812b516283f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "52bb11af19fc41753f57b42a536369c86593cc7e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'thing' identifier with the 'item' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
15
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
14
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'things' identifier with the 'items' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
23
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the item() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "52bb11af19fc41753f57b42a536369c86593cc7e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ede0aa7c889d52c22019d59396184e7dfd52da21"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'item in items' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
35
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'thing in things' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'item in items' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "ede0aa7c889d52c22019d59396184e7dfd52da21",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d6b33cd6c2c8ac516d925aa9363e01cef7ffa833"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
35
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'thing in things' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "d6b33cd6c2c8ac516d925aa9363e01cef7ffa833",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d01241c4d10bbc9704e175f67e2545da5616957f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-in-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'item in items' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-in-statement.js"
|
|
],
|
|
"sha1": "d01241c4d10bbc9704e175f67e2545da5616957f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4d5f1da9938770642007ba971d7fa14242bdd49f"
|
|
}]
|