mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
731 lines
24 KiB
JSON
731 lines
24 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-if-else-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "50e5e8bb6b1f89c5e0b60ec478d248088fafe1d8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "22472bb90317dbc36adb76bce31f5b5875ec4c42"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'g' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "22472bb90317dbc36adb76bce31f5b5875ec4c42",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2166d99be0e7e365f4102c444292de6e94d2968c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'g' identifier with the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'h' identifier with the 'y' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'i' identifier with the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
23
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'j' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
39
|
|
],
|
|
"end": [
|
|
1,
|
|
40
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
36
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'k' identifier with the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
42
|
|
],
|
|
"end": [
|
|
1,
|
|
43
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
38
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'l' identifier with the 'd' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
54
|
|
],
|
|
"end": [
|
|
1,
|
|
55
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
50
|
|
],
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'm' identifier with the 'e' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
53
|
|
],
|
|
"end": [
|
|
1,
|
|
54
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
59
|
|
],
|
|
"end": [
|
|
1,
|
|
60
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'n' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
69
|
|
],
|
|
"end": [
|
|
1,
|
|
70
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
61
|
|
],
|
|
"end": [
|
|
1,
|
|
62
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'o' identifier with the 'g' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "2166d99be0e7e365f4102c444292de6e94d2968c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a4bd360d8e87e769c5e59e855e985b10cd96adaa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' identifier with the 'g' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'y' identifier with the 'h' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'i' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'j' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
23
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
36
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
39
|
|
],
|
|
"end": [
|
|
1,
|
|
40
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'c' identifier with the 'k' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
38
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
42
|
|
],
|
|
"end": [
|
|
1,
|
|
43
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'd' identifier with the 'l' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
50
|
|
],
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
54
|
|
],
|
|
"end": [
|
|
1,
|
|
55
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'e' identifier with the 'm' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
59
|
|
],
|
|
"end": [
|
|
1,
|
|
60
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'n' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
53
|
|
],
|
|
"end": [
|
|
1,
|
|
54
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
61
|
|
],
|
|
"end": [
|
|
1,
|
|
62
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
69
|
|
],
|
|
"end": [
|
|
1,
|
|
70
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'g' identifier with the 'o' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "a4bd360d8e87e769c5e59e855e985b10cd96adaa",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b02a9785d82c81756059290d17b54469becfa09a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'g' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'g' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "b02a9785d82c81756059290d17b54469becfa09a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a4298222ae338f7b37cfcb392b870d7f482106f0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "a4298222ae338f7b37cfcb392b870d7f482106f0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "aa910a9ff2f723390e1dc8832fc701b5e68bf3ce"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'g' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "aa910a9ff2f723390e1dc8832fc701b5e68bf3ce",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "99000e408a9ff5553491972cfce5e9b2a1873904"
|
|
}]
|