1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/test/corpus/diff-summaries/javascript/switch-statement.json
2016-10-11 16:18:26 -04:00

341 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-switch-statement-insert-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Added the '1' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "d30e43ec820b535d256a20ed0964fba95c8764b3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6f28b051550ecf618c5ec1fc4109a47787a4da9c"
}
,{
"testCaseDescription": "javascript-switch-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Added the '2' switch statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
48
]
}
},
"summary": "Added the '1' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "6f28b051550ecf618c5ec1fc4109a47787a4da9c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c7bbc680850439b171c5c39a1dbb8bf3f4b258f1"
}
,{
"testCaseDescription": "javascript-switch-statement-delete-insert-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced '2' with '1'"
},
{
"span": {
"replace": [
{
"start": [
1,
33
],
"end": [
1,
34
]
},
{
"start": [
1,
33
],
"end": [
1,
34
]
}
]
},
"summary": "Replaced '2' with '1'"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "c7bbc680850439b171c5c39a1dbb8bf3f4b258f1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e1abf04722dcc2abc2e741e80c3d9c5bbaf94ab6"
}
,{
"testCaseDescription": "javascript-switch-statement-replacement-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
9
],
"end": [
1,
10
]
},
{
"start": [
1,
9
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced '1' with '2'"
},
{
"span": {
"replace": [
{
"start": [
1,
33
],
"end": [
1,
34
]
},
{
"start": [
1,
33
],
"end": [
1,
34
]
}
]
},
"summary": "Replaced '1' with '2'"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "e1abf04722dcc2abc2e741e80c3d9c5bbaf94ab6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f3d3fb5a9daeccf22d32dbcf79e3e6db7e00ac2e"
}
,{
"testCaseDescription": "javascript-switch-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the '2' switch statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
48
]
}
},
"summary": "Deleted the '1' switch statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
48
]
}
},
"summary": "Added the '2' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "f3d3fb5a9daeccf22d32dbcf79e3e6db7e00ac2e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "033f48b1db9de57690d1e8008aabb6435eb33732"
}
,{
"testCaseDescription": "javascript-switch-statement-delete-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the '1' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "033f48b1db9de57690d1e8008aabb6435eb33732",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cf1d8915d86aa7b40cc64d3a1b48e4633a034465"
}
,{
"testCaseDescription": "javascript-switch-statement-delete-rest-test",
"expectedResult": {
"changes": {
"switch-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the '2' switch statement"
}
]
},
"errors": {}
},
"filePaths": [
"switch-statement.js"
],
"sha1": "cf1d8915d86aa7b40cc64d3a1b48e4633a034465",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e34cec33423018aab0fa290f745d2dcb89c93f0f"
}]