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

287 lines
8.5 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": [
1,
25
]
}
},
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-11 23:17:34 +03:00
"sha1": "177b3db7ca070dc750876553a0cd7fde8b5df54c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "fd499e58d749df1da475f0d6033825f265734210"
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": [
1,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'a' 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": [
2,
25
]
}
},
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-11 23:17:34 +03:00
"sha1": "fd499e58d749df1da475f0d6033825f265734210",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "1f6c19a2b78ca415ac6e06f69c051ba6c23a250e"
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,
1
],
"end": [
1,
29
]
},
{
"start": [
1,
1
],
"end": [
1,
25
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'a' if statement with the 'x' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "1f6c19a2b78ca415ac6e06f69c051ba6c23a250e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "946c2d3269de0a2f284a9922b8da111323729827"
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,
1
],
"end": [
1,
25
]
},
{
"start": [
1,
1
],
"end": [
1,
29
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'x' if statement with the 'a' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "946c2d3269de0a2f284a9922b8da111323729827",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "71792b4ff0291e41c9e3ec3157abfea9cd67daa7"
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": [
1,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'a' 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": [
2,
25
]
}
},
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": [
2,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'a' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "71792b4ff0291e41c9e3ec3157abfea9cd67daa7",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "95edd1d597a111bbe508c047a0f75d0342b35cea"
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": [
1,
25
]
}
},
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-11 23:17:34 +03:00
"sha1": "95edd1d597a111bbe508c047a0f75d0342b35cea",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "58fd81ed8b29ab258997ccdcb2a0602e64748fc8"
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": [
1,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'a' if statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "58fd81ed8b29ab258997ccdcb2a0602e64748fc8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "73e8a48299a8c408fadbf83077ab1e56ea81b5b0"
2016-10-11 18:12:20 +03:00
}]