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-in-statement.json
2016-11-01 10:03:25 -05: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": "59c52a0ddb5e652e5b5108d0724541989a6d83aa",
"gitDir": "test/corpus/repos/javascript",
"sha2": "29b666fa2472eecf7b9d073a0293fc0d86cbee77"
}
,{
"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": "29b666fa2472eecf7b9d073a0293fc0d86cbee77",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b7391d72e98da90810b11a4ac0ed9027c4ddec08"
}
,{
"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": "b7391d72e98da90810b11a4ac0ed9027c4ddec08",
"gitDir": "test/corpus/repos/javascript",
"sha2": "02ace41153aabc248b4f4c3bbe70edd6cf930933"
}
,{
"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": "02ace41153aabc248b4f4c3bbe70edd6cf930933",
"gitDir": "test/corpus/repos/javascript",
"sha2": "843d56f80f3f9e2e7f2940b4f9382415fb00907c"
}
,{
"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": "843d56f80f3f9e2e7f2940b4f9382415fb00907c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0d0d6478c7e57258561455f0ce7b3d3f416f5ae5"
}
,{
"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": "0d0d6478c7e57258561455f0ce7b3d3f416f5ae5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "90c8a228bd3e7b8106f7a6461b376abc0055ec37"
}
,{
"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": "90c8a228bd3e7b8106f7a6461b376abc0055ec37",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d2246a50ed33ef4c748bfdaf80bbf4eb41cc6c57"
}]