1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/for-loop-with-in-statement.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05: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": "a142f742b4f0d1430db5bcfdcc05d7c2a16ba18c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c5f7571d90038fee73eaf576013c1cb82f1ab7d9"
}
,{
"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": "c5f7571d90038fee73eaf576013c1cb82f1ab7d9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f555a2d9d1edf1cde0f1b78075970d1a42815b47"
}
,{
"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": "f555a2d9d1edf1cde0f1b78075970d1a42815b47",
"gitDir": "test/corpus/repos/javascript",
"sha2": "07d524e8ebdf8e90a44c7da74a5b089f5a3c9f7e"
}
,{
"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": "07d524e8ebdf8e90a44c7da74a5b089f5a3c9f7e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6529218cf948d0422ec77304d46cddf58a1a8e6e"
}
,{
"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": "6529218cf948d0422ec77304d46cddf58a1a8e6e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0342c21e29bda8a1a34cbb060f8692a63146efac"
}
,{
"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": "0342c21e29bda8a1a34cbb060f8692a63146efac",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c06030facdcc8f8ecaeec1a870485e96ccdcbe2f"
}
,{
"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": "c06030facdcc8f8ecaeec1a870485e96ccdcbe2f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9c7b259101e1beec8fddbc41696a9b616787065f"
}]