mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
287 lines
8.9 KiB
JSON
287 lines
8.9 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-throw-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new Error(\"uh oh\")' throw statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "0a1875f1c7a75660da38253225a80c47d10d90b2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d14bcf509fc9f98d8a79744e4b9a0bcc25c88119"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new Error(\"oooooops\")' throw statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new Error(\"uh oh\")' throw statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "d14bcf509fc9f98d8a79744e4b9a0bcc25c88119",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1806fe03f58da7833d722099122baa7e3376dc13"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"oooooops\" string with the \"uh oh\" string in the Error(\"uh oh\") function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "1806fe03f58da7833d722099122baa7e3376dc13",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "aaf9e0e0a5b6147ef14e4455c031b8ac13741e66"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"uh oh\" string with the \"oooooops\" string in the Error(\"oooooops\") function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "aaf9e0e0a5b6147ef14e4455c031b8ac13741e66",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "25b0f6aadd06cc29f6d341a87cae0dc7a15af16a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new Error(\"oooooops\")' throw statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new Error(\"uh oh\")' throw statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new Error(\"oooooops\")' throw statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "25b0f6aadd06cc29f6d341a87cae0dc7a15af16a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "615db3875602a1d834851e0483df8c38519e86cd"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new Error(\"uh oh\")' throw statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "615db3875602a1d834851e0483df8c38519e86cd",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "998d022e9b46640d255b3f341f31a9e868c6f7af"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new Error(\"oooooops\")' throw statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "998d022e9b46640d255b3f341f31a9e868c6f7af",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3277969f1d72497bbb35dd967c8b39705c88507a"
|
|
}]
|