1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +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 00:44:36 +03:00
"sha1": "3903cb97b8c7fe507a17fa52ec09e6eaa1e95ad8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:44:36 +03:00
"sha2": "182d895f1ed34f6ea3f5e01ebec34f3872486ae2"
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
]
}
},
"summary": "Added the 'g' if statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
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 00:44:36 +03:00
"sha1": "182d895f1ed34f6ea3f5e01ebec34f3872486ae2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:44:36 +03:00
"sha2": "b27dbe99809ec3a3cff8c1bdac1829a7ec7f3a2a"
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
],
"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"
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-12 22:55:59 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-14 00:44:36 +03:00
"sha1": "b27dbe99809ec3a3cff8c1bdac1829a7ec7f3a2a",
2016-10-12 22:55:59 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:44:36 +03:00
"sha2": "2713de071b224835fcb35bf709342334422c4fb7"
2016-10-12 22:55:59 +03:00
}
,{
"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
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 00:44:36 +03:00
"sha1": "2713de071b224835fcb35bf709342334422c4fb7",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:44:36 +03:00
"sha2": "acdc250e3e92d45007edc022e7a46bd7c8870264"
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
]
}
},
"summary": "Deleted the 'g' if statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
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
]
}
},
"summary": "Added the 'g' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-14 00:44:36 +03:00
"sha1": "acdc250e3e92d45007edc022e7a46bd7c8870264",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:44:36 +03:00
"sha2": "c05504705f6307d70ec027ce0da03266c41b4333"
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 00:44:36 +03:00
"sha1": "c05504705f6307d70ec027ce0da03266c41b4333",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:44:36 +03:00
"sha2": "dbba6da8532f1191731609e596468ea525643576"
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
]
}
},
"summary": "Deleted the 'g' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-14 00:44:36 +03:00
"sha1": "dbba6da8532f1191731609e596468ea525643576",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:44:36 +03:00
"sha2": "4c75eac553b89390d3a122886e4797b7e470dc3f"
2016-10-11 18:12:20 +03:00
}]