1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00
semantic/test/corpus/diff-summaries/javascript/for-of-statement.json
2016-10-11 11:26:57 -04:00

429 lines
14 KiB
JSON

[{
"testCaseDescription": "javascript-for-of-statement-insert-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "for-of-statement.js",
"end": [
1,
43
]
}
},
"summary": "Added the 'item of items' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "da728273440e826c2fe2b916bce916b15b943590",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7c34377494c9c6e85107ded6606d04476c2b2268"
}
,{
"testCaseDescription": "javascript-for-of-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "for-of-statement.js",
"end": [
1,
46
]
}
},
"summary": "Added the 'thing of things' for statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "for-of-statement.js",
"end": [
2,
43
]
}
},
"summary": "Added the 'item of items' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "7c34377494c9c6e85107ded6606d04476c2b2268",
"gitDir": "test/corpus/repos/javascript",
"sha2": "826976cafe522d197bca1e54505385f9927a93df"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"these": [
{
"start": [
1,
10
],
"name": "for-of-statement.js",
"end": [
1,
15
]
},
{
"start": [
1,
10
],
"name": "for-of-statement.js",
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
19
],
"name": "for-of-statement.js",
"end": [
1,
25
]
},
{
"start": [
1,
18
],
"name": "for-of-statement.js",
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'things' identifier with the 'items' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
37
],
"name": "for-of-statement.js",
"end": [
1,
42
]
},
{
"start": [
1,
35
],
"name": "for-of-statement.js",
"end": [
1,
39
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the process(item) function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "826976cafe522d197bca1e54505385f9927a93df",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f62dd3dacb19116d9b248549e23eff65b07a94a7"
}
,{
"testCaseDescription": "javascript-for-of-statement-replacement-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"these": [
{
"start": [
1,
10
],
"name": "for-of-statement.js",
"end": [
1,
14
]
},
{
"start": [
1,
10
],
"name": "for-of-statement.js",
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
18
],
"name": "for-of-statement.js",
"end": [
1,
23
]
},
{
"start": [
1,
19
],
"name": "for-of-statement.js",
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'items' identifier with the 'things' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
35
],
"name": "for-of-statement.js",
"end": [
1,
39
]
},
{
"start": [
1,
37
],
"name": "for-of-statement.js",
"end": [
1,
42
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the process(thing) function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "f62dd3dacb19116d9b248549e23eff65b07a94a7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "65962e4817eecea21c95026afd9cb40387aaa657"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "for-of-statement.js",
"end": [
1,
46
]
}
},
"summary": "Deleted the 'thing of things' for statement",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "for-of-statement.js",
"end": [
2,
43
]
}
},
"summary": "Deleted the 'item of items' for statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "for-of-statement.js",
"end": [
2,
46
]
}
},
"summary": "Added the 'thing of things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "65962e4817eecea21c95026afd9cb40387aaa657",
"gitDir": "test/corpus/repos/javascript",
"sha2": "44a40ac1376d641124b097e8a6e1e2d9b12c991c"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "for-of-statement.js",
"end": [
1,
43
]
}
},
"summary": "Deleted the 'item of items' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "44a40ac1376d641124b097e8a6e1e2d9b12c991c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c7c2ac9ea4db0fb48c75d5fbf756f4474054d0fe"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "for-of-statement.js",
"end": [
1,
46
]
}
},
"summary": "Deleted the 'thing of things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "c7c2ac9ea4db0fb48c75d5fbf756f4474054d0fe",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7f97f2e3a13baab2548b10a72e291b71ca0b9fa4"
}]