1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00
semantic/test/corpus/diff-summaries/javascript/for-of-statement.json
2016-10-11 11:12:20 -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": "2469dee56808315df426b5a3b5c3f45a32a5dead",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cbe403e75ef47b35c182df6b7afe73ad796fab8a"
}
,{
"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": "cbe403e75ef47b35c182df6b7afe73ad796fab8a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "155a0705e326c3ff582ee652fed52550677570a6"
}
,{
"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": "155a0705e326c3ff582ee652fed52550677570a6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ef8d8643334cebf32c2c4be0f8efab6bc8efbc2b"
}
,{
"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": "ef8d8643334cebf32c2c4be0f8efab6bc8efbc2b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fca6551e597967f1b7970eba8647ea449d642c0d"
}
,{
"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": "fca6551e597967f1b7970eba8647ea449d642c0d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "951e6473bd1c1c48a8ccf17b85edf71c30f68003"
}
,{
"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": "951e6473bd1c1c48a8ccf17b85edf71c30f68003",
"gitDir": "test/corpus/repos/javascript",
"sha2": "eb9af080f71a3ebd4faf827ba73ca5506a0078bb"
}
,{
"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": "eb9af080f71a3ebd4faf827ba73ca5506a0078bb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4baec39517b6fe2e913b63502b66c0f5bb4ad2cc"
}]