1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/corpus/diff-summaries/javascript/for-in-statement.json

429 lines
14 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-for-in-statement-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
35
]
}
},
"summary": "Added the 'thing in things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "17aa0b04103d8aaedf77c3ff72f699f18194a962",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "e84def0e1a12e34c85dcec7af88b964eeb198e63"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
32
]
}
},
"summary": "Added the 'item in items' for statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "for-in-statement.js",
"end": [
2,
35
]
}
},
"summary": "Added the 'thing in things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "e84def0e1a12e34c85dcec7af88b964eeb198e63",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "f4ea564697dda7f2cc02fe16c0879aeb5952ddc2"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
10
]
},
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
14
],
"name": "for-in-statement.js",
"end": [
1,
19
]
},
{
"start": [
1,
15
],
"name": "for-in-statement.js",
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'items' identifier with the 'things' identifier",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
23
],
"name": "for-in-statement.js",
"end": [
1,
27
]
},
{
"start": [
1,
25
],
"name": "for-in-statement.js",
"end": [
1,
30
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the thing() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "f4ea564697dda7f2cc02fe16c0879aeb5952ddc2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "9e92b2178f4fec83f11e97e548ff1e4c438df489"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-replacement-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
11
]
},
{
"start": [
1,
6
],
"name": "for-in-statement.js",
"end": [
1,
10
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
15
],
"name": "for-in-statement.js",
"end": [
1,
21
]
},
{
"start": [
1,
14
],
"name": "for-in-statement.js",
"end": [
1,
19
]
}
]
},
"summary": "Replaced the 'things' identifier with the 'items' identifier",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
25
],
"name": "for-in-statement.js",
"end": [
1,
30
]
},
{
"start": [
1,
23
],
"name": "for-in-statement.js",
"end": [
1,
27
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the item() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "9e92b2178f4fec83f11e97e548ff1e4c438df489",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "fa62d70d1bf140a2a4339ac3b0811e3bed1eb9d5"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'item in items' for statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "for-in-statement.js",
"end": [
2,
35
]
}
},
"summary": "Deleted the 'thing in things' for statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "for-in-statement.js",
"end": [
2,
32
]
}
},
"summary": "Added the 'item in items' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "fa62d70d1bf140a2a4339ac3b0811e3bed1eb9d5",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "6eb412c429997ade58d7a15e880562076bfb9517"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
35
]
}
},
"summary": "Deleted the 'thing in things' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "6eb412c429997ade58d7a15e880562076bfb9517",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "0fead3b4746ae5344c4a240e1e177146ec3ada81"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"name": "for-in-statement.js",
"end": [
1,
32
]
}
},
"summary": "Deleted the 'item in items' for statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
2016-10-11 18:54:47 +03:00
"sha1": "0fead3b4746ae5344c4a240e1e177146ec3ada81",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "0ae77f84b193044495c0abfc49d346bde5e39414"
2016-10-11 18:12:20 +03:00
}]