1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 07:25:44 +03:00
semantic/test/corpus/diff-summaries/javascript/throw-statement.json

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-throw-statement-insert-test",
"expectedResult": {
"changes": {
"throw-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "throw-statement.js",
"end": [
1,
26
]
}
},
"summary": "Added the 'new Error(\"uh oh\")' throw statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
"sha1": "87ee63679cf89692a390eb921ae462b11b4a06e0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f14dd81890ac415d276801c1571ae13d4ddc96af"
}
,{
"testCaseDescription": "javascript-throw-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"throw-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "throw-statement.js",
"end": [
1,
29
]
}
},
"summary": "Added the 'new Error(\"oooooops\")' throw statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "throw-statement.js",
"end": [
2,
26
]
}
},
"summary": "Added the 'new Error(\"uh oh\")' throw statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
"sha1": "f14dd81890ac415d276801c1571ae13d4ddc96af",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f40e06699f4c62cbe28402a49217a50745d4951a"
}
,{
"testCaseDescription": "javascript-throw-statement-delete-insert-test",
"expectedResult": {
"changes": {
"throw-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
17
],
"filepath": "throw-statement.js",
"end": [
1,
27
]
},
{
"start": [
1,
17
],
"filepath": "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": "f40e06699f4c62cbe28402a49217a50745d4951a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e419aef46115c692e1dce0182e889d147bab900b"
}
,{
"testCaseDescription": "javascript-throw-statement-replacement-test",
"expectedResult": {
"changes": {
"throw-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
17
],
"filepath": "throw-statement.js",
"end": [
1,
24
]
},
{
"start": [
1,
17
],
"filepath": "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": "e419aef46115c692e1dce0182e889d147bab900b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "456b9d703a0897c3ae7ffcccb88b633d24d6e772"
}
,{
"testCaseDescription": "javascript-throw-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"throw-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "throw-statement.js",
"end": [
1,
29
]
}
},
"summary": "Deleted the 'new Error(\"oooooops\")' throw statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "throw-statement.js",
"end": [
2,
26
]
}
},
"summary": "Deleted the 'new Error(\"uh oh\")' throw statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "throw-statement.js",
"end": [
2,
29
]
}
},
"summary": "Added the 'new Error(\"oooooops\")' throw statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
"sha1": "456b9d703a0897c3ae7ffcccb88b633d24d6e772",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a0241ec11741dd48f4789522c53554a6c0e51ec5"
}
,{
"testCaseDescription": "javascript-throw-statement-delete-test",
"expectedResult": {
"changes": {
"throw-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "throw-statement.js",
"end": [
1,
26
]
}
},
"summary": "Deleted the 'new Error(\"uh oh\")' throw statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
"sha1": "a0241ec11741dd48f4789522c53554a6c0e51ec5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9f6bb83269360c82b0a7d8f0876db24bec390b09"
}
,{
"testCaseDescription": "javascript-throw-statement-delete-rest-test",
"expectedResult": {
"changes": {
"throw-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "throw-statement.js",
"end": [
1,
29
]
}
},
"summary": "Deleted the 'new Error(\"oooooops\")' throw statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"throw-statement.js"
],
"sha1": "9f6bb83269360c82b0a7d8f0876db24bec390b09",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5886a80268586c2725f1f8be03d2dea099ba0bd2"
}]