mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
341 lines
11 KiB
JSON
341 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
63
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'key in something && i = 0; i < n; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "2e0a052703f9effddf81fa1ebbf3f86d671f79bd",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d7b6ac21e7b5979fa4215aa2392f0d9164113096"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
73
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'otherKey in something && i = 0; i < n; i++' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
63
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'key in something && i = 0; i < n; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "d7b6ac21e7b5979fa4215aa2392f0d9164113096",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7414d5a42c5400cb22522a1badbbe537559f820d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'otherKey' identifier with the 'key' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
52
|
|
],
|
|
"end": [
|
|
1,
|
|
68
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
47
|
|
],
|
|
"end": [
|
|
1,
|
|
58
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'doOtherSomething' identifier with the 'doSomething' identifier in the doSomething() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "7414d5a42c5400cb22522a1badbbe537559f820d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f4d4e185de3564e2e9c9bb30b31b2d3b3ab5316e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'key' identifier with the 'otherKey' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
47
|
|
],
|
|
"end": [
|
|
1,
|
|
58
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
52
|
|
],
|
|
"end": [
|
|
1,
|
|
68
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'doSomething' identifier with the 'doOtherSomething' identifier in the doOtherSomething() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "f4d4e185de3564e2e9c9bb30b31b2d3b3ab5316e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8e056cf85850d440a5e43c667f45cf86028b849e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
73
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'otherKey in something && i = 0; i < n; i++' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
63
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'key in something && i = 0; i < n; i++' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
73
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'otherKey in something && i = 0; i < n; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "8e056cf85850d440a5e43c667f45cf86028b849e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1c116d93a473261e0fcc91be45782c9744b4a8ca"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
63
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'key in something && i = 0; i < n; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "1c116d93a473261e0fcc91be45782c9744b4a8ca",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ac0b3ceab1dd2402a27e1b2e3ff5812e4a2bb40e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-loop-with-in-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
73
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'otherKey in something && i = 0; i < n; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-loop-with-in-statement.js"
|
|
],
|
|
"sha1": "ac0b3ceab1dd2402a27e1b2e3ff5812e4a2bb40e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cadd169ab13abc1bed4a820437560473eab08a21"
|
|
}]
|