mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
341 lines
10 KiB
JSON
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": "3defa19138689c5840e9f50b7ee772734412b703",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6c20fdae6ee3c7e005d616d2fdc37885452eba9d"
|
|
}
|
|
,{
|
|
"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": "6c20fdae6ee3c7e005d616d2fdc37885452eba9d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bff121bbc8118f3169e53f903596392f9b451a96"
|
|
}
|
|
,{
|
|
"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": "bff121bbc8118f3169e53f903596392f9b451a96",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9633c8003ba455372f349163b75264c6815bd883"
|
|
}
|
|
,{
|
|
"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": "9633c8003ba455372f349163b75264c6815bd883",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "40e17990859d8ffb564a1cb6fdf409bfee46666e"
|
|
}
|
|
,{
|
|
"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": "40e17990859d8ffb564a1cb6fdf409bfee46666e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a666a657e6f15bc0619fb9580a6b25b01a760ca3"
|
|
}
|
|
,{
|
|
"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": "a666a657e6f15bc0619fb9580a6b25b01a760ca3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "69ba6b73bd75863e5a5421d957cbad1101ad8590"
|
|
}
|
|
,{
|
|
"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": "69ba6b73bd75863e5a5421d957cbad1101ad8590",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ed6cef0935d7f0cd2fe2e9eb0b3a10f827eba3f3"
|
|
}]
|