mirror of
https://github.com/github/semantic.git
synced 2024-12-22 22:31:36 +03:00
429 lines
14 KiB
JSON
429 lines
14 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-for-of-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'item of items' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "e7588cafe7a823a1dce9ddba49bcb503476dc672",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c37d0cae68a2013dfd17781ac2ff2d8b669ab9d7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'thing of things' for statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
2,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'item of items' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "c37d0cae68a2013dfd17781ac2ff2d8b669ab9d7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cf9ed207fbbfb8cb068aedf35c5a7d1c95440d06"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'thing' identifier with the 'item' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
18
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'things' identifier with the 'items' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
37
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"filepath": "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": "cf9ed207fbbfb8cb068aedf35c5a7d1c95440d06",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "303102430bf2d88d6da7137cc5571aeef5f93224"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'item' identifier with the 'thing' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
18
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
23
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'items' identifier with the 'things' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
37
|
|
],
|
|
"filepath": "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": "303102430bf2d88d6da7137cc5571aeef5f93224",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "01a95973305ffa51292ab7a8a0970f690c1937e3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'thing of things' for statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
2,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'item of items' for statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
2,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'thing of things' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "01a95973305ffa51292ab7a8a0970f690c1937e3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "84ebc837b7c11ee0b16b688e1029a411a3fd7327"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'item of items' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "84ebc837b7c11ee0b16b688e1029a411a3fd7327",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "710ddea57e61c8fe5d105dd26e5192efa8bd3e52"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-of-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-of-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"filepath": "for-of-statement.js",
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'thing of things' for statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-of-statement.js"
|
|
],
|
|
"sha1": "710ddea57e61c8fe5d105dd26e5192efa8bd3e52",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9f4f05255cc1f41d2c7dcbe4a450082306db1db1"
|
|
}]
|