1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +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-11 23:17:34 +03:00
"sha1": "d30e43ec820b535d256a20ed0964fba95c8764b3",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "6f28b051550ecf618c5ec1fc4109a47787a4da9c"
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-11 23:17:34 +03:00
"sha1": "6f28b051550ecf618c5ec1fc4109a47787a4da9c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "c7bbc680850439b171c5c39a1dbb8bf3f4b258f1"
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-11 23:17:34 +03:00
"sha1": "c7bbc680850439b171c5c39a1dbb8bf3f4b258f1",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "e1abf04722dcc2abc2e741e80c3d9c5bbaf94ab6"
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-11 23:17:34 +03:00
"sha1": "e1abf04722dcc2abc2e741e80c3d9c5bbaf94ab6",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "f3d3fb5a9daeccf22d32dbcf79e3e6db7e00ac2e"
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-11 23:17:34 +03:00
"sha1": "f3d3fb5a9daeccf22d32dbcf79e3e6db7e00ac2e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "033f48b1db9de57690d1e8008aabb6435eb33732"
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-11 23:17:34 +03:00
"sha1": "033f48b1db9de57690d1e8008aabb6435eb33732",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "cf1d8915d86aa7b40cc64d3a1b48e4633a034465"
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-11 23:17:34 +03:00
"sha1": "cf1d8915d86aa7b40cc64d3a1b48e4633a034465",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "e34cec33423018aab0fa290f745d2dcb89c93f0f"
2016-10-11 18:12:20 +03:00
}]