1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/test/corpus/diff-summaries/javascript/nested-do-while-in-function.json
2016-10-11 15:13:51 -04:00

2677 lines
92 KiB
JSON

[{
"testCaseDescription": "javascript-export-insert-test",
"expectedResult": {
"changes": {
"export.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
39
]
}
},
"summary": "Added the name1, name2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
58
]
}
},
"summary": "Added the variable1 as name1, variable2 as name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
32
]
}
},
"summary": "Added the name1, name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
57
]
}
},
"summary": "Added the name1 = value1, name2 = value2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
30
]
}
},
"summary": "Added the namedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
32
]
}
},
"summary": "Added the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
37
]
}
},
"summary": "Added the name1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
29
]
}
},
"summary": "Added the name1 as default export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
21
]
}
},
"summary": "Added the 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
43
]
}
},
"summary": "Added the name1, name2, nameN from 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
11,
1
],
"end": [
11,
65
]
}
},
"summary": "Added the import1 as name1, import2 as name2, nameN from 'bar' export statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"export.js"
],
"sha1": "cf784ad9d8d9843aa79915afc98e7c8c7def3bce",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6a61c15ee9b892ad6fb99edf5ed4fddaaf1668cd"
}
,{
"testCaseDescription": "javascript-export-replacement-insert-test",
"expectedResult": {
"changes": {
"export.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
39
]
}
},
"summary": "Added the name4, name5, name6, nameZ export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
58
]
}
},
"summary": "Added the variable2 as name2, variable3 as name3, nameY export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
32
]
}
},
"summary": "Added the name3, name4, nameT export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
57
]
}
},
"summary": "Added the name2 = value2, name3 = value3, name4, nameO export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
35
]
}
},
"summary": "Added the otherNamedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
39
]
}
},
"summary": "Added the newName1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
31
]
}
},
"summary": "Added the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
31
]
}
},
"summary": "Added the name2 as statement export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
21
]
}
},
"summary": "Added the 'baz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
44
]
}
},
"summary": "Added the name7, name8, nameP from 'buzz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
11,
1
],
"end": [
11,
66
]
}
},
"summary": "Added the import6 as name6, import7 as name7, nameB from 'fizz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
12,
39
]
}
},
"summary": "Added the name1, name2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
13,
1
],
"end": [
13,
58
]
}
},
"summary": "Added the variable1 as name1, variable2 as name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
14,
1
],
"end": [
14,
32
]
}
},
"summary": "Added the name1, name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
15,
1
],
"end": [
15,
57
]
}
},
"summary": "Added the name1 = value1, name2 = value2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
16,
1
],
"end": [
16,
30
]
}
},
"summary": "Added the namedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
17,
1
],
"end": [
17,
32
]
}
},
"summary": "Added the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
18,
1
],
"end": [
18,
37
]
}
},
"summary": "Added the name1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
19,
1
],
"end": [
19,
29
]
}
},
"summary": "Added the name1 as default export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
20,
1
],
"end": [
20,
21
]
}
},
"summary": "Added the 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
21,
1
],
"end": [
21,
43
]
}
},
"summary": "Added the name1, name2, nameN from 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
22,
1
],
"end": [
22,
65
]
}
},
"summary": "Added the import1 as name1, import2 as name2, nameN from 'bar' export statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"export.js"
],
"sha1": "6a61c15ee9b892ad6fb99edf5ed4fddaaf1668cd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8b44c437b4f4230802f75d171dfe1e45a5131045"
}
,{
"testCaseDescription": "javascript-export-delete-insert-test",
"expectedResult": {
"changes": {
"export.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
15
]
},
{
"start": [
1,
10
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'name4' identifier with the 'name1' identifier in the name1, name2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
17
],
"end": [
1,
22
]
},
{
"start": [
1,
17
],
"end": [
1,
22
]
}
]
},
"summary": "Replaced the 'name5' identifier with the 'name2' identifier in the name1, name2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
29
]
},
{
"start": [
1,
24
],
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'name6' identifier with the 'name3' identifier in the name1, name2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
31
],
"end": [
1,
36
]
},
{
"start": [
1,
31
],
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'nameZ' identifier with the 'nameN' identifier in the name1, name2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
2,
10
],
"end": [
2,
19
]
},
{
"start": [
2,
10
],
"end": [
2,
19
]
}
]
},
"summary": "Replaced the 'variable2' identifier with the 'variable1' identifier in the variable1 as name1, variable2 as name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
2,
23
],
"end": [
2,
28
]
},
{
"start": [
2,
23
],
"end": [
2,
28
]
}
]
},
"summary": "Replaced the 'name2' identifier with the 'name1' identifier in the variable1 as name1, variable2 as name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
2,
30
],
"end": [
2,
39
]
},
{
"start": [
2,
30
],
"end": [
2,
39
]
}
]
},
"summary": "Replaced the 'variable3' identifier with the 'variable2' identifier in the variable1 as name1, variable2 as name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
2,
43
],
"end": [
2,
48
]
},
{
"start": [
2,
43
],
"end": [
2,
48
]
}
]
},
"summary": "Replaced the 'name3' identifier with the 'name2' identifier in the variable1 as name1, variable2 as name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
2,
50
],
"end": [
2,
55
]
},
{
"start": [
2,
50
],
"end": [
2,
55
]
}
]
},
"summary": "Replaced the 'nameY' identifier with the 'nameN' identifier in the variable1 as name1, variable2 as name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
3,
12
],
"end": [
3,
17
]
},
{
"start": [
3,
12
],
"end": [
3,
17
]
}
]
},
"summary": "Replaced the 'name3' identifier with the 'name1' identifier in the name1, name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
3,
19
],
"end": [
3,
24
]
},
{
"start": [
3,
19
],
"end": [
3,
24
]
}
]
},
"summary": "Replaced the 'name4' identifier with the 'name2' identifier in the name1, name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
3,
26
],
"end": [
3,
31
]
},
{
"start": [
3,
26
],
"end": [
3,
31
]
}
]
},
"summary": "Replaced the 'nameT' identifier with the 'nameN' identifier in the name1, name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
4,
12
],
"end": [
4,
17
]
},
{
"start": [
4,
12
],
"end": [
4,
17
]
}
]
},
"summary": "Replaced the 'name2' identifier with the 'name1' identifier in the name1 var assignment",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
4,
20
],
"end": [
4,
26
]
},
{
"start": [
4,
20
],
"end": [
4,
26
]
}
]
},
"summary": "Replaced the 'value2' identifier with the 'value1' identifier in the name1 var assignment",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
4,
28
],
"end": [
4,
33
]
},
{
"start": [
4,
28
],
"end": [
4,
33
]
}
]
},
"summary": "Replaced the 'name3' identifier with the 'name2' identifier in the name2 var assignment",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
4,
36
],
"end": [
4,
42
]
},
{
"start": [
4,
36
],
"end": [
4,
42
]
}
]
},
"summary": "Replaced the 'value3' identifier with the 'value2' identifier in the name2 var assignment",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
4,
44
],
"end": [
4,
49
]
},
{
"start": [
4,
44
],
"end": [
4,
49
]
}
]
},
"summary": "Replaced the 'name4' identifier with the 'name3' identifier in the name1 = value1, name2 = value2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
4,
51
],
"end": [
4,
56
]
},
{
"start": [
4,
51
],
"end": [
4,
56
]
}
]
},
"summary": "Replaced the 'nameO' identifier with the 'nameN' identifier in the name1 = value1, name2 = value2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
5,
16
],
"end": [
5,
34
]
},
{
"start": [
5,
16
],
"end": [
5,
29
]
}
]
},
"summary": "Replaced the 'otherNamedFunction' identifier with the 'namedFunction' identifier in the namedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
32
]
}
},
"summary": "Added the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
37
]
}
},
"summary": "Added the name1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
29
]
}
},
"summary": "Added the name1 as default export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
21
]
}
},
"summary": "Added the 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
43
]
}
},
"summary": "Added the name1, name2, nameN from 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
11,
1
],
"end": [
11,
65
]
}
},
"summary": "Added the import1 as name1, import2 as name2, nameN from 'bar' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
39
]
}
},
"summary": "Deleted the newName1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
31
]
}
},
"summary": "Deleted the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
31
]
}
},
"summary": "Deleted the name2 as statement export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
21
]
}
},
"summary": "Deleted the 'baz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
44
]
}
},
"summary": "Deleted the name7, name8, nameP from 'buzz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
11,
1
],
"end": [
11,
66
]
}
},
"summary": "Deleted the import6 as name6, import7 as name7, nameB from 'fizz' export statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"export.js"
],
"sha1": "8b44c437b4f4230802f75d171dfe1e45a5131045",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a785e114db03c32878ca52d5eb63919ab6a2157e"
}
,{
"testCaseDescription": "javascript-export-replacement-test",
"expectedResult": {
"changes": {
"export.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
15
]
},
{
"start": [
1,
10
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'name1' identifier with the 'name4' identifier in the name4, name5, name6, nameZ export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
17
],
"end": [
1,
22
]
},
{
"start": [
1,
17
],
"end": [
1,
22
]
}
]
},
"summary": "Replaced the 'name2' identifier with the 'name5' identifier in the name4, name5, name6, nameZ export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
29
]
},
{
"start": [
1,
24
],
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'name3' identifier with the 'name6' identifier in the name4, name5, name6, nameZ export statement",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
31
],
"end": [
1,
36
]
},
{
"start": [
1,
31
],
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'nameN' identifier with the 'nameZ' identifier in the name4, name5, name6, nameZ export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
58
]
}
},
"summary": "Added the variable2 as name2, variable3 as name3, nameY export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
32
]
}
},
"summary": "Added the name3, name4, nameT export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
57
]
}
},
"summary": "Added the name2 = value2, name3 = value3, name4, nameO export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
35
]
}
},
"summary": "Added the otherNamedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
39
]
}
},
"summary": "Added the newName1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
31
]
}
},
"summary": "Added the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
31
]
}
},
"summary": "Added the name2 as statement export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
21
]
}
},
"summary": "Added the 'baz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
44
]
}
},
"summary": "Added the name7, name8, nameP from 'buzz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
11,
1
],
"end": [
11,
66
]
}
},
"summary": "Added the import6 as name6, import7 as name7, nameB from 'fizz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
58
]
}
},
"summary": "Deleted the variable1 as name1, variable2 as name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
32
]
}
},
"summary": "Deleted the name1, name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
57
]
}
},
"summary": "Deleted the name1 = value1, name2 = value2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
30
]
}
},
"summary": "Deleted the namedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
32
]
}
},
"summary": "Deleted the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
37
]
}
},
"summary": "Deleted the name1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
29
]
}
},
"summary": "Deleted the name1 as default export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
21
]
}
},
"summary": "Deleted the 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
43
]
}
},
"summary": "Deleted the name1, name2, nameN from 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
11,
1
],
"end": [
11,
65
]
}
},
"summary": "Deleted the import1 as name1, import2 as name2, nameN from 'bar' export statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"export.js"
],
"sha1": "a785e114db03c32878ca52d5eb63919ab6a2157e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "630f93e2ef51a3dbf92c5d9070fb2c8d4e77cbe0"
}
,{
"testCaseDescription": "javascript-export-delete-replacement-test",
"expectedResult": {
"changes": {
"export.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
39
]
}
},
"summary": "Deleted the name4, name5, name6, nameZ export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
58
]
}
},
"summary": "Deleted the variable2 as name2, variable3 as name3, nameY export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
32
]
}
},
"summary": "Deleted the name3, name4, nameT export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
57
]
}
},
"summary": "Deleted the name2 = value2, name3 = value3, name4, nameO export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
35
]
}
},
"summary": "Deleted the otherNamedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
39
]
}
},
"summary": "Deleted the newName1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
31
]
}
},
"summary": "Deleted the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
31
]
}
},
"summary": "Deleted the name2 as statement export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
21
]
}
},
"summary": "Deleted the 'baz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
44
]
}
},
"summary": "Deleted the name7, name8, nameP from 'buzz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
11,
1
],
"end": [
11,
66
]
}
},
"summary": "Deleted the import6 as name6, import7 as name7, nameB from 'fizz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
12,
1
],
"end": [
12,
39
]
}
},
"summary": "Deleted the name1, name2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
13,
1
],
"end": [
13,
58
]
}
},
"summary": "Deleted the variable1 as name1, variable2 as name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
14,
1
],
"end": [
14,
32
]
}
},
"summary": "Deleted the name1, name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
15,
1
],
"end": [
15,
57
]
}
},
"summary": "Deleted the name1 = value1, name2 = value2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
16,
1
],
"end": [
16,
30
]
}
},
"summary": "Deleted the namedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
17,
1
],
"end": [
17,
32
]
}
},
"summary": "Deleted the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
18,
1
],
"end": [
18,
37
]
}
},
"summary": "Deleted the name1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
19,
1
],
"end": [
19,
29
]
}
},
"summary": "Deleted the name1 as default export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
20,
1
],
"end": [
20,
21
]
}
},
"summary": "Deleted the 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
21,
1
],
"end": [
21,
43
]
}
},
"summary": "Deleted the name1, name2, nameN from 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
22,
1
],
"end": [
22,
65
]
}
},
"summary": "Deleted the import1 as name1, import2 as name2, nameN from 'bar' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
12,
1
],
"end": [
12,
39
]
}
},
"summary": "Added the name4, name5, name6, nameZ export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
13,
1
],
"end": [
13,
58
]
}
},
"summary": "Added the variable2 as name2, variable3 as name3, nameY export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
14,
1
],
"end": [
14,
32
]
}
},
"summary": "Added the name3, name4, nameT export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
15,
1
],
"end": [
15,
57
]
}
},
"summary": "Added the name2 = value2, name3 = value3, name4, nameO export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
16,
1
],
"end": [
16,
35
]
}
},
"summary": "Added the otherNamedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
17,
1
],
"end": [
17,
39
]
}
},
"summary": "Added the newName1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
18,
1
],
"end": [
18,
31
]
}
},
"summary": "Added the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
19,
1
],
"end": [
19,
31
]
}
},
"summary": "Added the name2 as statement export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
20,
1
],
"end": [
20,
21
]
}
},
"summary": "Added the 'baz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
21,
1
],
"end": [
21,
44
]
}
},
"summary": "Added the name7, name8, nameP from 'buzz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
22,
1
],
"end": [
22,
66
]
}
},
"summary": "Added the import6 as name6, import7 as name7, nameB from 'fizz' export statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"export.js"
],
"sha1": "630f93e2ef51a3dbf92c5d9070fb2c8d4e77cbe0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4dc68416478b18e5ab4d0cb03d1be06129ffde31"
}
,{
"testCaseDescription": "javascript-export-delete-test",
"expectedResult": {
"changes": {
"export.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
39
]
}
},
"summary": "Deleted the name1, name2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
58
]
}
},
"summary": "Deleted the variable1 as name1, variable2 as name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
32
]
}
},
"summary": "Deleted the name1, name2, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
57
]
}
},
"summary": "Deleted the name1 = value1, name2 = value2, name3, nameN export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
30
]
}
},
"summary": "Deleted the namedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
32
]
}
},
"summary": "Deleted the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
37
]
}
},
"summary": "Deleted the name1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
29
]
}
},
"summary": "Deleted the name1 as default export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
21
]
}
},
"summary": "Deleted the 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
43
]
}
},
"summary": "Deleted the name1, name2, nameN from 'foo' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
11,
1
],
"end": [
11,
65
]
}
},
"summary": "Deleted the import1 as name1, import2 as name2, nameN from 'bar' export statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"export.js"
],
"sha1": "4dc68416478b18e5ab4d0cb03d1be06129ffde31",
"gitDir": "test/corpus/repos/javascript",
"sha2": "11d28b7ee48f99ad7e371a3ff7a3afcb482ecac5"
}
,{
"testCaseDescription": "javascript-export-delete-rest-test",
"expectedResult": {
"changes": {
"export.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
39
]
}
},
"summary": "Deleted the name4, name5, name6, nameZ export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
58
]
}
},
"summary": "Deleted the variable2 as name2, variable3 as name3, nameY export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
32
]
}
},
"summary": "Deleted the name3, name4, nameT export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
57
]
}
},
"summary": "Deleted the name2 = value2, name3 = value3, name4, nameO export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
35
]
}
},
"summary": "Deleted the otherNamedFunction export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
39
]
}
},
"summary": "Deleted the newName1 export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
31
]
}
},
"summary": "Deleted the anonymous() function export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
31
]
}
},
"summary": "Deleted the name2 as statement export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
21
]
}
},
"summary": "Deleted the 'baz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
44
]
}
},
"summary": "Deleted the name7, name8, nameP from 'buzz' export statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
11,
1
],
"end": [
11,
66
]
}
},
"summary": "Deleted the import6 as name6, import7 as name7, nameB from 'fizz' export statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"export.js"
],
"sha1": "11d28b7ee48f99ad7e371a3ff7a3afcb482ecac5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a1ec5326a248592c7deb7a7e3b3ece00b97506bb"
}]