1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/javascript/switch-statement.json

341 lines
10 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-switch-statement-insert-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
48
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '1' switch statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
2016-10-14 00:58:17 +03:00
"sha1": "3defa19138689c5840e9f50b7ee772734412b703",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "6c20fdae6ee3c7e005d616d2fdc37885452eba9d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-switch-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
48
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '2' switch 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,
48
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '1' switch statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
2016-10-14 00:58:17 +03:00
"sha1": "6c20fdae6ee3c7e005d616d2fdc37885452eba9d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "bff121bbc8118f3169e53f903596392f9b451a96"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-switch-statement-delete-insert-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '2' with '1'"
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,
33
],
"end": [
1,
34
]
},
{
"start": [
1,
33
],
"end": [
1,
34
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '2' with '1'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
2016-10-14 00:58:17 +03:00
"sha1": "bff121bbc8118f3169e53f903596392f9b451a96",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "9633c8003ba455372f349163b75264c6815bd883"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-switch-statement-replacement-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '1' with '2'"
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,
33
],
"end": [
1,
34
]
},
{
"start": [
1,
33
],
"end": [
1,
34
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '1' with '2'"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
2016-10-14 00:58:17 +03:00
"sha1": "9633c8003ba455372f349163b75264c6815bd883",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "40e17990859d8ffb564a1cb6fdf409bfee46666e"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-switch-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
48
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '2' switch 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,
48
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '1' switch 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,
48
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '2' switch statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
2016-10-14 00:58:17 +03:00
"sha1": "40e17990859d8ffb564a1cb6fdf409bfee46666e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "a666a657e6f15bc0619fb9580a6b25b01a760ca3"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-switch-statement-delete-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
48
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '1' switch statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
2016-10-14 00:58:17 +03:00
"sha1": "a666a657e6f15bc0619fb9580a6b25b01a760ca3",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "69ba6b73bd75863e5a5421d957cbad1101ad8590"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-switch-statement-delete-rest-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
48
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '2' switch statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
2016-10-14 00:58:17 +03:00
"sha1": "69ba6b73bd75863e5a5421d957cbad1101ad8590",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 00:58:17 +03:00
"sha2": "ed6cef0935d7f0cd2fe2e9eb0b3a10f827eba3f3"
2016-10-11 18:12:20 +03:00
}]