1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/for-loop-with-in-statement.json
2016-10-11 16:18:26 -04:00

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": "954a81d340fc574299386d998fb6cd667fe875ce",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8e7957d2f5b2ec1db4345678a2abc67205202d7f"
}
,{
"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": "8e7957d2f5b2ec1db4345678a2abc67205202d7f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8aafa0ba7361d24eecc7b67f364b96fb0e1783d9"
}
,{
"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": "8aafa0ba7361d24eecc7b67f364b96fb0e1783d9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ba14e6d7fb2d573306e97d6440a31bfd4ba358f7"
}
,{
"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": "ba14e6d7fb2d573306e97d6440a31bfd4ba358f7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "99930dbd3a9f28d37aeda9c4746c210df0912e72"
}
,{
"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": "99930dbd3a9f28d37aeda9c4746c210df0912e72",
"gitDir": "test/corpus/repos/javascript",
"sha2": "eb0f914082b22114ac7e3a487bec4dae17770ebc"
}
,{
"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": "eb0f914082b22114ac7e3a487bec4dae17770ebc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d5ae13f5b72c809e77f06665c3eae01cfcf76533"
}
,{
"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": "d5ae13f5b72c809e77f06665c3eae01cfcf76533",
"gitDir": "test/corpus/repos/javascript",
"sha2": "65cf271429cfd2f26c112bf377c0fc4f8d79cba4"
}]