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-in-statement.json
2016-10-11 16:18:26 -04:00

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": "1e9729897fa1da1617386fa8da290df973dadc93",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e5d8b7d6f07410e2fa00bbec5718bbdf061166fa"
}
,{
"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": "e5d8b7d6f07410e2fa00bbec5718bbdf061166fa",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6c8ba52447c2faf8fed1eba65cd64c643003461f"
}
,{
"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": "6c8ba52447c2faf8fed1eba65cd64c643003461f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bc392f77e718987c79b53126053665c245b163ac"
}
,{
"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": "bc392f77e718987c79b53126053665c245b163ac",
"gitDir": "test/corpus/repos/javascript",
"sha2": "da2eb693e4cc262362cb81c3fdd040af92eecc42"
}
,{
"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": "da2eb693e4cc262362cb81c3fdd040af92eecc42",
"gitDir": "test/corpus/repos/javascript",
"sha2": "210a8ed2aa30b91ca470694492daa7412c616d58"
}
,{
"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": "210a8ed2aa30b91ca470694492daa7412c616d58",
"gitDir": "test/corpus/repos/javascript",
"sha2": "89852450722771842d4365c760a1403957fc7c96"
}
,{
"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": "89852450722771842d4365c760a1403957fc7c96",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e572fcdd9abd2fa13fdff57a3afd8b3c43a6c6a0"
}]