1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +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-11-01 18:03:25 +03:00
"sha1": "3061e328305d93ca2fd3a8aa7a86d645c4c28b15",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "5f53dc879b334542448ffa34bdc4c8577fa2631c"
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-11-01 18:03:25 +03:00
"sha1": "5f53dc879b334542448ffa34bdc4c8577fa2631c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "cd94b5a63c7f3e1b4030abf1594df447a408bd53"
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-11-01 18:03:25 +03:00
"sha1": "cd94b5a63c7f3e1b4030abf1594df447a408bd53",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "bf2bf68e09cff917b1f1e995fb4dea6fa856233d"
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-11-01 18:03:25 +03:00
"sha1": "bf2bf68e09cff917b1f1e995fb4dea6fa856233d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "bd8d8bb98201860e195a9d64d0ef921727472476"
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-11-01 18:03:25 +03:00
"sha1": "bd8d8bb98201860e195a9d64d0ef921727472476",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "a4e7ca238ba4f2e84929de265104ee0370233f82"
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-11-01 18:03:25 +03:00
"sha1": "a4e7ca238ba4f2e84929de265104ee0370233f82",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "89100f872e690353e3171008af10bb9be2f6beb3"
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-11-01 18:03:25 +03:00
"sha1": "89100f872e690353e3171008af10bb9be2f6beb3",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "be60a15b22146780f1f1a090b8550ce29929e830"
2016-10-11 18:12:20 +03:00
}]