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

297 lines
8.9 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
]
}
},
"summary": "Added the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "9791d662a9cbd0fe8d9219fcf7550a3417954956",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "7af553e3a57c0d33f2c020598c2f05db9398f594"
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
]
}
},
"summary": "Added the 'a' if statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
25
]
}
},
"summary": "Added the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "7af553e3a57c0d33f2c020598c2f05db9398f594",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "651c15bb59c428793be04e7072f6d137832df250"
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
]
}
]
},
"summary": "Replaced the 'a' if statement with the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "651c15bb59c428793be04e7072f6d137832df250",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "15b975c4d4e28f674c65de1da47ba66daafc29bf"
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
]
}
]
},
"summary": "Replaced the 'x' if statement with the 'a' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "15b975c4d4e28f674c65de1da47ba66daafc29bf",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "2ee5946e894b4aa6269be6efb6f47f568208cbba"
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
]
}
},
"summary": "Deleted the 'a' if statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
25
]
}
},
"summary": "Deleted the 'x' if statement",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
29
]
}
},
"summary": "Added the 'a' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "2ee5946e894b4aa6269be6efb6f47f568208cbba",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "afba47fff506da21a377692c35e52c9777ffa56b"
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
]
}
},
"summary": "Deleted the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "afba47fff506da21a377692c35e52c9777ffa56b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "b8cf4deac8a619ffabbbb6619640509d2a12f6af"
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
]
}
},
"summary": "Deleted the 'a' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if-else.js"
],
2016-10-11 22:13:51 +03:00
"sha1": "b8cf4deac8a619ffabbbb6619640509d2a12f6af",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 22:13:51 +03:00
"sha2": "2d5d9ee14704ef70452e42e144662eceacdb562d"
2016-10-11 18:12:20 +03:00
}]