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
2016-10-13 16:44:36 -05:00

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": "3903cb97b8c7fe507a17fa52ec09e6eaa1e95ad8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "182d895f1ed34f6ea3f5e01ebec34f3872486ae2"
}
,{
"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": "182d895f1ed34f6ea3f5e01ebec34f3872486ae2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b27dbe99809ec3a3cff8c1bdac1829a7ec7f3a2a"
}
,{
"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": "b27dbe99809ec3a3cff8c1bdac1829a7ec7f3a2a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2713de071b224835fcb35bf709342334422c4fb7"
}
,{
"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": "2713de071b224835fcb35bf709342334422c4fb7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "acdc250e3e92d45007edc022e7a46bd7c8870264"
}
,{
"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": "acdc250e3e92d45007edc022e7a46bd7c8870264",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c05504705f6307d70ec027ce0da03266c41b4333"
}
,{
"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": "c05504705f6307d70ec027ce0da03266c41b4333",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dbba6da8532f1191731609e596468ea525643576"
}
,{
"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": "dbba6da8532f1191731609e596468ea525643576",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4c75eac553b89390d3a122886e4797b7e470dc3f"
}]