1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/if-else.json

731 lines
24 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-if-else-insert-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
2016-10-12 22:55:59 +03:00
2,
1
2016-10-11 18:12:20 +03:00
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "50e5e8bb6b1f89c5e0b60ec478d248088fafe1d8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "22472bb90317dbc36adb76bce31f5b5875ec4c42"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-else-replacement-insert-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
2016-10-12 22:55:59 +03:00
2,
1
2016-10-11 18:12:20 +03:00
]
}
},
2016-10-12 22:55:59 +03:00
"summary": "Added the 'g' if statement"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2016-10-12 22:55:59 +03:00
3,
1
2016-10-11 18:12:20 +03:00
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "22472bb90317dbc36adb76bce31f5b5875ec4c42",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "2166d99be0e7e365f4102c444292de6e94d2968c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-else-delete-insert-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
2016-10-12 22:55:59 +03:00
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
2016-10-11 18:12:20 +03:00
],
"end": [
1,
2016-10-12 22:55:59 +03:00
40
2016-10-11 18:12:20 +03:00
]
},
{
"start": [
1,
2016-10-12 22:55:59 +03:00
35
2016-10-11 18:12:20 +03:00
],
"end": [
1,
2016-10-12 22:55:59 +03:00
36
2016-10-11 18:12:20 +03:00
]
}
]
},
2016-10-12 22:55:59 +03:00
"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"
2016-10-14 00:44:36 +03:00
},
{
"span": {
"replace": [
{
"start": [
1,
69
],
"end": [
1,
70
]
},
{
"start": [
1,
61
],
"end": [
1,
62
]
}
]
},
"summary": "Replaced the 'o' identifier with the 'g' identifier"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "2166d99be0e7e365f4102c444292de6e94d2968c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "a4bd360d8e87e769c5e59e855e985b10cd96adaa"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-else-replacement-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
2016-10-12 22:55:59 +03:00
5
2016-10-11 18:12:20 +03:00
],
"end": [
1,
2016-10-12 22:55:59 +03:00
6
2016-10-11 18:12:20 +03:00
]
},
{
"start": [
1,
2016-10-12 22:55:59 +03:00
5
2016-10-11 18:12:20 +03:00
],
"end": [
1,
2016-10-12 22:55:59 +03:00
6
2016-10-11 18:12:20 +03:00
]
}
]
},
2016-10-12 22:55:59 +03:00
"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
2016-10-11 18:12:20 +03:00
],
"end": [
1,
2016-10-12 22:55:59 +03:00
39
2016-10-11 18:12:20 +03:00
]
},
{
"start": [
1,
2016-10-12 22:55:59 +03:00
42
2016-10-11 18:12:20 +03:00
],
"end": [
1,
2016-10-12 22:55:59 +03:00
43
2016-10-11 18:12:20 +03:00
]
}
]
},
2016-10-12 22:55:59 +03:00
"summary": "Replaced the 'd' identifier with the 'l' identifier"
},
2016-10-11 18:12:20 +03:00
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
2016-10-12 22:55:59 +03:00
50
2016-10-11 18:12:20 +03:00
],
"end": [
1,
2016-10-12 22:55:59 +03:00
51
2016-10-11 18:12:20 +03:00
]
},
{
"start": [
1,
2016-10-12 22:55:59 +03:00
54
2016-10-11 18:12:20 +03:00
],
"end": [
1,
2016-10-12 22:55:59 +03:00
55
2016-10-11 18:12:20 +03:00
]
}
]
},
2016-10-12 22:55:59 +03:00
"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"
2016-10-14 00:44:36 +03:00
},
{
"span": {
"replace": [
{
"start": [
1,
61
],
"end": [
1,
62
]
},
{
"start": [
1,
69
],
"end": [
1,
70
]
}
]
},
"summary": "Replaced the 'g' identifier with the 'o' identifier"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "a4bd360d8e87e769c5e59e855e985b10cd96adaa",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "b02a9785d82c81756059290d17b54469becfa09a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-else-delete-replacement-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
2016-10-12 22:55:59 +03:00
2,
1
2016-10-11 18:12:20 +03:00
]
}
},
2016-10-12 22:55:59 +03:00
"summary": "Deleted the 'g' if statement"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2016-10-12 22:55:59 +03:00
3,
1
2016-10-11 18:12:20 +03:00
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x' if statement"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2016-10-12 22:55:59 +03:00
3,
1
2016-10-11 18:12:20 +03:00
]
}
},
2016-10-12 22:55:59 +03:00
"summary": "Added the 'g' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "b02a9785d82c81756059290d17b54469becfa09a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "a4298222ae338f7b37cfcb392b870d7f482106f0"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-else-delete-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
2016-10-12 22:55:59 +03:00
2,
1
2016-10-11 18:12:20 +03:00
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "a4298222ae338f7b37cfcb392b870d7f482106f0",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "aa910a9ff2f723390e1dc8832fc701b5e68bf3ce"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-if-else-delete-rest-test",
"expectedResult": {
"changes": {
"if-else.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
2016-10-12 22:55:59 +03:00
2,
1
2016-10-11 18:12:20 +03:00
]
}
},
2016-10-12 22:55:59 +03:00
"summary": "Deleted the 'g' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "aa910a9ff2f723390e1dc8832fc701b5e68bf3ce",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "99000e408a9ff5553491972cfce5e9b2a1873904"
2016-10-11 18:12:20 +03:00
}]