mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
1625 lines
55 KiB
JSON
1625 lines
55 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 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": "a2d4c453bd5819dd22716ce40c5abd91aaf0af96",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8f038627298d51e24022cc940dbb46cfb596b42f"
|
|
}
|
|
,{
|
|
"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 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 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": "8f038627298d51e24022cc940dbb46cfb596b42f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d64ca338a92ed3c8bf4accf04cce6664434d8470"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
33
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember from \"foo\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
27
|
|
],
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
23
|
|
],
|
|
"end": [
|
|
2,
|
|
33
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"babirusa\" string with the \"aardvark\" string in the name from \"aardvark\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
17
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'defaultMember' identifier with the 'name' identifier in the 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"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 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": "d64ca338a92ed3c8bf4accf04cce6664434d8470",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6cf5d045aecc63d55a582bbc3644f033ad58e36d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-import-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"import.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
38
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the defaultMember from \"babirusa\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
27
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
28
|
|
],
|
|
"end": [
|
|
2,
|
|
36
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"foo\" string with the \"baboon\" string in the otherName from \"baboon\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
22
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'defaultMember' identifier with the 'otherName' identifier in the otherName from \"baboon\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
23
|
|
],
|
|
"end": [
|
|
2,
|
|
33
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
25
|
|
],
|
|
"end": [
|
|
3,
|
|
33
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"aardvark\" string with the \"badger\" string in the element from \"badger\" import statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
13
|
|
],
|
|
"end": [
|
|
2,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
10
|
|
],
|
|
"end": [
|
|
3,
|
|
17
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'name' identifier with the 'element' identifier in 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": {
|
|
"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": "6cf5d045aecc63d55a582bbc3644f033ad58e36d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3013722a563d2868bf7bfe021bdfdfdff521b967"
|
|
}
|
|
,{
|
|
"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 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 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 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": "3013722a563d2868bf7bfe021bdfdfdff521b967",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2f86f9da336f0407a2ca39d0ee4a959091bb7952"
|
|
}
|
|
,{
|
|
"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 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": "2f86f9da336f0407a2ca39d0ee4a959091bb7952",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "30944a87fbaf4af40445ddb8264003eedeec821f"
|
|
}
|
|
,{
|
|
"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 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": "30944a87fbaf4af40445ddb8264003eedeec821f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9610afd6cbcffec3359a682713065543f20fa1f3"
|
|
}]
|