mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
309 lines
10 KiB
JSON
309 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-throw-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new Error(\"uh oh\")' throw statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "d3cabdc9dab4bc3c11777bbc5a792d76b819c732",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e81a468723aa03296599372e20ecc7c1251ef654"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new Error(\"oooooops\")' throw statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
2,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new Error(\"uh oh\")' throw statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "e81a468723aa03296599372e20ecc7c1251ef654",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2a03554ea9e30a920d4fcdbec54c60cba731bb3d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"oooooops\" string with the \"uh oh\" string in the Error(\"uh oh\") function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "2a03554ea9e30a920d4fcdbec54c60cba731bb3d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "206657eed174831f61ce3147f00df2b8ba4c90f3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"uh oh\" string with the \"oooooops\" string in the Error(\"oooooops\") function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "206657eed174831f61ce3147f00df2b8ba4c90f3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1e5ba14bad6d93d8db35db604e0c07b79bf4bb87"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new Error(\"oooooops\")' throw statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
2,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new Error(\"uh oh\")' throw statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
2,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'new Error(\"oooooops\")' throw statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "1e5ba14bad6d93d8db35db604e0c07b79bf4bb87",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c3c3aa05ccd4314717771fa3cfcd116521c4e206"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new Error(\"uh oh\")' throw statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "c3c3aa05ccd4314717771fa3cfcd116521c4e206",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2a0fa3df9551511efb25e81d813ddb86a843cddf"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-throw-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"throw-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "throw-statement.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'new Error(\"oooooops\")' throw statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"throw-statement.js"
|
|
],
|
|
"sha1": "2a0fa3df9551511efb25e81d813ddb86a843cddf",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "37116a9b6cbef2a356805bbeaf6ab65cdcac7749"
|
|
}]
|