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": "2ae4706629967d108b1958dd2c6b86d4b1100cf8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d5dc204ab281ba5a23b925ed37345643b1f24d6c"
|
|
}
|
|
,{
|
|
"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": "d5dc204ab281ba5a23b925ed37345643b1f24d6c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e7cfe1735e1220e2c0ba05e8645724471c714679"
|
|
}
|
|
,{
|
|
"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": "e7cfe1735e1220e2c0ba05e8645724471c714679",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "30062f8ab2fc4a33c438bd66ca4ceec7e22dfdf0"
|
|
}
|
|
,{
|
|
"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": "30062f8ab2fc4a33c438bd66ca4ceec7e22dfdf0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6b109f90348029463707d7049e1a98eb664f245c"
|
|
}
|
|
,{
|
|
"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": "6b109f90348029463707d7049e1a98eb664f245c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e93161dec7ee7c6f57f9c7a482e6225058201cab"
|
|
}
|
|
,{
|
|
"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": "e93161dec7ee7c6f57f9c7a482e6225058201cab",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6152bd641f7f4852871a99f4c9cff98d90ccd88f"
|
|
}
|
|
,{
|
|
"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": "6152bd641f7f4852871a99f4c9cff98d90ccd88f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "26e37a0640c0b799cf3aae29b84c1be6752eaa00"
|
|
}]
|