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": "be60a15b22146780f1f1a090b8550ce29929e830",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "06ff6b48e424252bf5f7e1734af6be3939c7160a"
|
|
}
|
|
,{
|
|
"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": "06ff6b48e424252bf5f7e1734af6be3939c7160a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f1b8b13e67b888546e7f539aa11f39ec0071e984"
|
|
}
|
|
,{
|
|
"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": "f1b8b13e67b888546e7f539aa11f39ec0071e984",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2547a3a1d8fc60aedb2d5f017318ade862ee3e54"
|
|
}
|
|
,{
|
|
"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": "2547a3a1d8fc60aedb2d5f017318ade862ee3e54",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "23c866826fe1d1f041a445cd747ef16e3174122c"
|
|
}
|
|
,{
|
|
"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": "23c866826fe1d1f041a445cd747ef16e3174122c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "70db2c7584e6acae05d2d03b49860dc5db393f62"
|
|
}
|
|
,{
|
|
"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": "70db2c7584e6acae05d2d03b49860dc5db393f62",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b6610e26a2e5418b434ea25e1227b430961113cc"
|
|
}
|
|
,{
|
|
"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": "b6610e26a2e5418b434ea25e1227b430961113cc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b52b5d119274b849b6f3a5aa770b5677e0f1ea18"
|
|
}]
|