1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00
semantic/test/corpus/diff-summaries/javascript/throw-statement.json

287 lines
8.9 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-throw-statement-insert-test",
"expectedResult": {
"changes": {
"throw-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,
26
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'new Error(\"uh oh\")' throw statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "2ae4706629967d108b1958dd2c6b86d4b1100cf8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "d5dc204ab281ba5a23b925ed37345643b1f24d6c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-throw-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"throw-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,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'new Error(\"oooooops\")' throw 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,
26
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'new Error(\"uh oh\")' throw statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "d5dc204ab281ba5a23b925ed37345643b1f24d6c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "e7cfe1735e1220e2c0ba05e8645724471c714679"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-throw-statement-delete-insert-test",
"expectedResult": {
"changes": {
"throw-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
17
],
"end": [
1,
27
]
},
{
"start": [
1,
17
],
"end": [
1,
24
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the \"oooooops\" string with the \"uh oh\" string in the Error(\"uh oh\") function call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "e7cfe1735e1220e2c0ba05e8645724471c714679",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "30062f8ab2fc4a33c438bd66ca4ceec7e22dfdf0"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-throw-statement-replacement-test",
"expectedResult": {
"changes": {
"throw-statement.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
17
],
"end": [
1,
24
]
},
{
"start": [
1,
17
],
"end": [
1,
27
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the \"uh oh\" string with the \"oooooops\" string in the Error(\"oooooops\") function call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "30062f8ab2fc4a33c438bd66ca4ceec7e22dfdf0",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "6b109f90348029463707d7049e1a98eb664f245c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-throw-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"throw-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,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'new Error(\"oooooops\")' throw 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,
26
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'new Error(\"uh oh\")' throw 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,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'new Error(\"oooooops\")' throw statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "6b109f90348029463707d7049e1a98eb664f245c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "e93161dec7ee7c6f57f9c7a482e6225058201cab"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-throw-statement-delete-test",
"expectedResult": {
"changes": {
"throw-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,
26
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'new Error(\"uh oh\")' throw statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "e93161dec7ee7c6f57f9c7a482e6225058201cab",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "6152bd641f7f4852871a99f4c9cff98d90ccd88f"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-throw-statement-delete-rest-test",
"expectedResult": {
"changes": {
"throw-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,
29
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'new Error(\"oooooops\")' throw statement"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "6152bd641f7f4852871a99f4c9cff98d90ccd88f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "26e37a0640c0b799cf3aae29b84c1be6752eaa00"
2016-10-11 18:12:20 +03:00
}]