mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
409 lines
13 KiB
JSON
409 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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "5079af56f5049cde622a571fb286589b471549e5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7897caa7d3f395e6fc8421235775076903bfeea3"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'item of items' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "7897caa7d3f395e6fc8421235775076903bfeea3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "764b4aec6e49bf027190ab1e5083bdd35a055279"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
18
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'things' identifier with the 'items' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "764b4aec6e49bf027190ab1e5083bdd35a055279",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ed8939173ee392ec35dd13ff8fee4d4c6f93f985"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
18
|
|
],
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'items' identifier with the 'things' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "ed8939173ee392ec35dd13ff8fee4d4c6f93f985",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8be63f36f0484ba36f2de2a06801fe411b1b6bbc"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'item of items' for statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'thing of things' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "8be63f36f0484ba36f2de2a06801fe411b1b6bbc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ae793daccac506e88da2f1d9e5bbe6a63f0c57e8"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "ae793daccac506e88da2f1d9e5bbe6a63f0c57e8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "99cbdc5330a41c478311d2cdf679409e67ebb255"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "99cbdc5330a41c478311d2cdf679409e67ebb255",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c1166aa59e4b025c51e2a166a47413eba325ff1d"
|
|
}]
|