1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/for-loop-with-in-statement.json
2016-10-12 19:44:27 -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": "1513552950187f7c949efa1db6b99e1101edb37e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c20004fd9330c6fba1b5c9ad980c5fbb59314b3a"
}
,{
"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": "c20004fd9330c6fba1b5c9ad980c5fbb59314b3a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "589671e72f013855d04f049f9dd567664b4a9d7a"
}
,{
"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": "589671e72f013855d04f049f9dd567664b4a9d7a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8ca6cc7f504bc9e0e08add71031d470d429d622e"
}
,{
"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": "8ca6cc7f504bc9e0e08add71031d470d429d622e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "88e1bfb314cf96f1a59227ba66a0213703c3e1ed"
}
,{
"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": "88e1bfb314cf96f1a59227ba66a0213703c3e1ed",
"gitDir": "test/corpus/repos/javascript",
"sha2": "93eed9c69a55e9511516c052eae492893fa00408"
}
,{
"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": "93eed9c69a55e9511516c052eae492893fa00408",
"gitDir": "test/corpus/repos/javascript",
"sha2": "339abfc5980142b1b2e19cef26c12c5ffa564727"
}
,{
"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": "339abfc5980142b1b2e19cef26c12c5ffa564727",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2f9b976c244edb9d991feaba3a467b396fc59644"
}]