mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
1589 lines
54 KiB
JSON
1589 lines
54 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-import-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
33
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember from \"foo\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the * as name from \"aardvark\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
30
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { member } from \"ant\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { member1 , member2 } from \"antelope\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember, * as name from \"alligator\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the \"arctic-tern\" import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "1011ea99d2c513437073a38030c1290fcc06cac4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "40bc61d9d0c547e336e8a44b5e90f7db3c90f585"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
38
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember from \"babirusa\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the * as otherName from \"baboon\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { element } from \"badger\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember, * as element from \"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 defaultMember from \"foo\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the * as name from \"aardvark\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
30
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { member } from \"ant\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { member1 , member2 } from \"antelope\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
13,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
1
|
|
],
|
|
"end": [
|
|
14,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
15,
|
|
1
|
|
],
|
|
"end": [
|
|
15,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember, * as name from \"alligator\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
16,
|
|
1
|
|
],
|
|
"end": [
|
|
16,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the \"arctic-tern\" import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "40bc61d9d0c547e336e8a44b5e90f7db3c90f585",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "433f5cbcd86af87576fdb9ec6b2d9851f5632d4d"
|
|
}
|
|
,{
|
|
"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 defaultMember from \"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 * as name from \"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 * as name from \"aardvark\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
30
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { member } from \"ant\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { member1 , member2 } from \"antelope\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { member1 , member2 as alias2 } from \"ant-eater\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
34
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the { element } from \"badger\" import statement with the defaultMember, * as name from \"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 { element1 , element2 } from \"bald-eagle\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, * as element from \"barbet\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the \"basilisk\" import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "433f5cbcd86af87576fdb9ec6b2d9851f5632d4d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fd76bae4b8cceb60c08b9f3c5cad5c89e5f9794e"
|
|
}
|
|
,{
|
|
"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 defaultMember from \"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 * as otherName from \"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 * as otherName from \"baboon\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { element } from \"badger\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the { member } from \"ant\" import statement with the defaultMember, * as element from \"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 { member1 , member2 } from \"antelope\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, * as name from \"alligator\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the \"arctic-tern\" import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "fd76bae4b8cceb60c08b9f3c5cad5c89e5f9794e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2dd6289f8d933a4704f37ac94ddf156032a92a00"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
38
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember from \"babirusa\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the * as otherName from \"baboon\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { element } from \"badger\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, * as element from \"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 defaultMember from \"foo\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the * as name from \"aardvark\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
30
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { member } from \"ant\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { member1 , member2 } from \"antelope\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
13,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
14,
|
|
1
|
|
],
|
|
"end": [
|
|
14,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
15,
|
|
1
|
|
],
|
|
"end": [
|
|
15,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, * as name from \"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 defaultMember from \"babirusa\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the * as otherName from \"baboon\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { element } from \"badger\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
12,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { element1 , element2 } from \"bald-eagle\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
13,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
1
|
|
],
|
|
"end": [
|
|
14,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
15,
|
|
1
|
|
],
|
|
"end": [
|
|
15,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember, * as element from \"barbet\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
16,
|
|
1
|
|
],
|
|
"end": [
|
|
16,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the \"basilisk\" import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "2dd6289f8d933a4704f37ac94ddf156032a92a00",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1719ae08e72d065a121f9a962a48b33288f90868"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
33
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember from \"foo\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the * as name from \"aardvark\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
30
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { member } from \"ant\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { member1 , member2 } from \"antelope\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
57
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { member1 , member2 as alias2 } from \"ant-eater\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
70
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, { member1, member2 as alias2 } from \"anaconda\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, * as name from \"alligator\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the \"arctic-tern\" import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "1719ae08e72d065a121f9a962a48b33288f90868",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "193d82337dbb90df9252043dea7fe42e407ccc0e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
38
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember from \"babirusa\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the * as otherName from \"baboon\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
34
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { element } from \"badger\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { element1 , element2 } from \"bald-eagle\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
66
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the { element1 , element2 as elementAlias2 } from \"bandicoot\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
78
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, { element1, element2 as elementAlias2 } from \"banteng\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
50
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the defaultMember, * as element from \"barbet\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the \"basilisk\" import statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"import.js"
|
|
],
|
|
"sha1": "193d82337dbb90df9252043dea7fe42e407ccc0e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7b67ddbc527cc15d1cbac33725dc0c4d79472c8c"
|
|
}]
|