mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
1589 lines
52 KiB
JSON
1589 lines
52 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-import-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
33
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"foo\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"aardvark\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
30
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"ant\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"antelope\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"ant-eater\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"anaconda\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"alligator\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"arctic-tern\"' import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "110e284b9b5d70a24d6747dbb0e6e6f7525b44f3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8929273e7a60a0f8d0b25917e9f9e7b8808492b9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
38
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"babirusa\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"baboon\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"badger\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"bald-eagle\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"bandicoot\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"banteng\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"barbet\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"basilisk\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
33
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"foo\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"aardvark\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
30
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"ant\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"antelope\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
13,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"ant-eater\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
1
|
|
],
|
|
"end": [
|
|
14,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"anaconda\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
15,
|
|
1
|
|
],
|
|
"end": [
|
|
15,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"alligator\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
16,
|
|
1
|
|
],
|
|
"end": [
|
|
16,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"arctic-tern\"' import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "8929273e7a60a0f8d0b25917e9f9e7b8808492b9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d56d94f765b22f263b9cf7a2bff4a62697f6e8a2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
27
|
|
],
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
27
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"babirusa\" string with the \"foo\" string in the \"foo\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
28
|
|
],
|
|
"end": [
|
|
2,
|
|
36
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
23
|
|
],
|
|
"end": [
|
|
2,
|
|
33
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"baboon\" string with the \"aardvark\" string in the \"aardvark\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
17
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'otherName' identifier with the 'name' identifier in the \"aardvark\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
30
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"ant\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"antelope\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"ant-eater\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"anaconda\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
34
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '\"badger\"' import statement with the '\"alligator\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"arctic-tern\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"bald-eagle\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"bandicoot\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"banteng\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"barbet\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"basilisk\"' import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "d56d94f765b22f263b9cf7a2bff4a62697f6e8a2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "70b0e327d1737690933dfcf8c7bd925a1ca4f871"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
27
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
27
|
|
],
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"foo\" string with the \"babirusa\" string in the \"babirusa\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
23
|
|
],
|
|
"end": [
|
|
2,
|
|
33
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
28
|
|
],
|
|
"end": [
|
|
2,
|
|
36
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"aardvark\" string with the \"baboon\" string in the \"baboon\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
22
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'name' identifier with the 'otherName' identifier in the \"baboon\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"badger\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"bald-eagle\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"bandicoot\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"banteng\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '\"ant\"' import statement with the '\"barbet\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"basilisk\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"antelope\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"ant-eater\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"anaconda\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"alligator\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"arctic-tern\"' import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "70b0e327d1737690933dfcf8c7bd925a1ca4f871",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "67cbd6d7f2a4ae48578af14a879214662d82e4e2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
38
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"babirusa\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"baboon\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"badger\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"bald-eagle\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"bandicoot\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"banteng\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"barbet\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"basilisk\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
33
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"foo\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"aardvark\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
30
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"ant\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"antelope\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
13,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"ant-eater\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
14,
|
|
1
|
|
],
|
|
"end": [
|
|
14,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"anaconda\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
15,
|
|
1
|
|
],
|
|
"end": [
|
|
15,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"alligator\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
16,
|
|
1
|
|
],
|
|
"end": [
|
|
16,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"arctic-tern\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
38
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"babirusa\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"baboon\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"badger\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"bald-eagle\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
13,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"bandicoot\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
1
|
|
],
|
|
"end": [
|
|
14,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"banteng\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
15,
|
|
1
|
|
],
|
|
"end": [
|
|
15,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"barbet\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
16,
|
|
1
|
|
],
|
|
"end": [
|
|
16,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"basilisk\"' import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "67cbd6d7f2a4ae48578af14a879214662d82e4e2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f98b1467108f4fa1329acff5c7502306c0cb0f5c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
33
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"foo\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"aardvark\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
30
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"ant\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"antelope\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"ant-eater\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"anaconda\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"alligator\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"arctic-tern\"' import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "f98b1467108f4fa1329acff5c7502306c0cb0f5c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ae342fb2632b86ad69f348c30b285da6157091b0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
38
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"babirusa\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"baboon\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"badger\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"bald-eagle\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"bandicoot\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"banteng\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"barbet\"' import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"basilisk\"' import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "ae342fb2632b86ad69f348c30b285da6157091b0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fd1e9b12635afbdec41b1778d104a04b853b883f"
|
|
}]
|