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-of-statement.json
2016-10-14 12:19:31 -04:00

395 lines
13 KiB
JSON

[{
"testCaseDescription": "javascript-for-of-statement-insert-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
43
]
}
},
"summary": "Added the 'item of items' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "35888bf1509d5649af7582979e28667d1d690447",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e608154978e1c27498e0aa93e988a2481e229fc8"
}
,{
"testCaseDescription": "javascript-for-of-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
46
]
}
},
"summary": "Added the 'thing of things' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
43
]
}
},
"summary": "Added the 'item of items' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "e608154978e1c27498e0aa93e988a2481e229fc8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c01ea3285d35e1fd16e0394d6f0b7e1ea8802970"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
15
]
},
{
"start": [
1,
10
],
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
19
],
"end": [
1,
25
]
},
{
"start": [
1,
18
],
"end": [
1,
23
]
}
]
},
"summary": "Replaced the 'things' identifier with the 'items' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
37
],
"end": [
1,
42
]
},
{
"start": [
1,
35
],
"end": [
1,
39
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the process(item) function call"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "c01ea3285d35e1fd16e0394d6f0b7e1ea8802970",
"gitDir": "test/corpus/repos/javascript",
"sha2": "89eff4d5e9b589e41febf344c22eb5a04df68b16"
}
,{
"testCaseDescription": "javascript-for-of-statement-replacement-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
14
]
},
{
"start": [
1,
10
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
18
],
"end": [
1,
23
]
},
{
"start": [
1,
19
],
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'items' identifier with the 'things' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
35
],
"end": [
1,
39
]
},
{
"start": [
1,
37
],
"end": [
1,
42
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the process(thing) function call"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "89eff4d5e9b589e41febf344c22eb5a04df68b16",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7965158f937b3ee160994456741eb00afe3fbd0d"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
46
]
}
},
"summary": "Deleted the 'thing of things' for statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
43
]
}
},
"summary": "Deleted the 'item of items' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
46
]
}
},
"summary": "Added the 'thing of things' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "7965158f937b3ee160994456741eb00afe3fbd0d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a66323bfa0cd0f0a13774b57a83940c4068a40f3"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
43
]
}
},
"summary": "Deleted the 'item of items' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "a66323bfa0cd0f0a13774b57a83940c4068a40f3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0ca09a3099c640d7c94b2f17af17271e929f9922"
}
,{
"testCaseDescription": "javascript-for-of-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-of-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
46
]
}
},
"summary": "Deleted the 'thing of things' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-of-statement.js"
],
"sha1": "0ca09a3099c640d7c94b2f17af17271e929f9922",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a2d502c7a7513f8b444a86b20b30bab03596fbc8"
}]