1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/javascript/throw-statement.json
Rob Rix 483e8a3f00 Regenerate all the things!
JavaScript: method call → function call.

Go: regenerated everything.
2017-01-24 15:09:28 -05:00

348 lines
11 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"
],
"patch": [
"diff --git a/throw-statement.js b/throw-statement.js",
"index e69de29b..e2fcb67e 100644",
"--- a/throw-statement.js",
"+++ b/throw-statement.js",
"@@ -0,0 +1 @@",
"+throw new Error(\"uh oh\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "20c612d09dbfc0c2c4ab61b7c9234d17faa3f43e..4c4b9cfa76e0341cd6b2773ed2f4fee6cbba6801"
}
,{
"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"
],
"patch": [
"diff --git a/throw-statement.js b/throw-statement.js",
"index e2fcb67e..c0020c89 100644",
"--- a/throw-statement.js",
"+++ b/throw-statement.js",
"@@ -1 +1,3 @@",
"+throw new Error(\"oooooops\");",
"+throw new Error(\"uh oh\");",
" throw new Error(\"uh oh\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "4c4b9cfa76e0341cd6b2773ed2f4fee6cbba6801..c4cf5d1a0e5380b0fe9170d3f3d3f452f96ff051"
}
,{
"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"
],
"patch": [
"diff --git a/throw-statement.js b/throw-statement.js",
"index c0020c89..46442332 100644",
"--- a/throw-statement.js",
"+++ b/throw-statement.js",
"@@ -1,3 +1,3 @@",
"-throw new Error(\"oooooops\");",
"+throw new Error(\"uh oh\");",
" throw new Error(\"uh oh\");",
" throw new Error(\"uh oh\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c4cf5d1a0e5380b0fe9170d3f3d3f452f96ff051..cb3c1b253c771eeb846b64affb12b6986c40977a"
}
,{
"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"
],
"patch": [
"diff --git a/throw-statement.js b/throw-statement.js",
"index 46442332..c0020c89 100644",
"--- a/throw-statement.js",
"+++ b/throw-statement.js",
"@@ -1,3 +1,3 @@",
"-throw new Error(\"uh oh\");",
"+throw new Error(\"oooooops\");",
" throw new Error(\"uh oh\");",
" throw new Error(\"uh oh\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "cb3c1b253c771eeb846b64affb12b6986c40977a..ecbbfb90f3448338b540960be008bbcad8bb7d54"
}
,{
"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"
],
"patch": [
"diff --git a/throw-statement.js b/throw-statement.js",
"index c0020c89..a1bbf3e1 100644",
"--- a/throw-statement.js",
"+++ b/throw-statement.js",
"@@ -1,3 +1,2 @@",
"-throw new Error(\"oooooops\");",
"-throw new Error(\"uh oh\");",
" throw new Error(\"uh oh\");",
"+throw new Error(\"oooooops\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ecbbfb90f3448338b540960be008bbcad8bb7d54..a78d37a5473fa63f59d233127cab6692ca1f7bb8"
}
,{
"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"
],
"patch": [
"diff --git a/throw-statement.js b/throw-statement.js",
"index a1bbf3e1..cc3c5312 100644",
"--- a/throw-statement.js",
"+++ b/throw-statement.js",
"@@ -1,2 +1 @@",
"-throw new Error(\"uh oh\");",
" throw new Error(\"oooooops\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "a78d37a5473fa63f59d233127cab6692ca1f7bb8..7318e2a144a5c550ebbafb4bc615fa30fabea266"
}
,{
"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"
],
"patch": [
"diff --git a/throw-statement.js b/throw-statement.js",
"index cc3c5312..e69de29b 100644",
"--- a/throw-statement.js",
"+++ b/throw-statement.js",
"@@ -1 +0,0 @@",
"-throw new Error(\"oooooops\");"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "7318e2a144a5c550ebbafb4bc615fa30fabea266..4d5c25eaa453b756183d88d10a8fa94ec9a29ce9"
}]