1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/switch-statement.json
2016-11-01 10:03:25 -05: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": "3061e328305d93ca2fd3a8aa7a86d645c4c28b15",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5f53dc879b334542448ffa34bdc4c8577fa2631c"
}
,{
"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": "5f53dc879b334542448ffa34bdc4c8577fa2631c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cd94b5a63c7f3e1b4030abf1594df447a408bd53"
}
,{
"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": "cd94b5a63c7f3e1b4030abf1594df447a408bd53",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bf2bf68e09cff917b1f1e995fb4dea6fa856233d"
}
,{
"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": "bf2bf68e09cff917b1f1e995fb4dea6fa856233d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bd8d8bb98201860e195a9d64d0ef921727472476"
}
,{
"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": "bd8d8bb98201860e195a9d64d0ef921727472476",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a4e7ca238ba4f2e84929de265104ee0370233f82"
}
,{
"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": "a4e7ca238ba4f2e84929de265104ee0370233f82",
"gitDir": "test/corpus/repos/javascript",
"sha2": "89100f872e690353e3171008af10bb9be2f6beb3"
}
,{
"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": "89100f872e690353e3171008af10bb9be2f6beb3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "be60a15b22146780f1f1a090b8550ce29929e830"
}]