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

348 lines
11 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"
],
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "20c612d09dbfc0c2c4ab61b7c9234d17faa3f43e..4c4b9cfa76e0341cd6b2773ed2f4fee6cbba6801"
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"
],
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "4c4b9cfa76e0341cd6b2773ed2f4fee6cbba6801..c4cf5d1a0e5380b0fe9170d3f3d3f452f96ff051"
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"
],
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "c4cf5d1a0e5380b0fe9170d3f3d3f452f96ff051..cb3c1b253c771eeb846b64affb12b6986c40977a"
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"
],
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "cb3c1b253c771eeb846b64affb12b6986c40977a..ecbbfb90f3448338b540960be008bbcad8bb7d54"
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"
],
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "ecbbfb90f3448338b540960be008bbcad8bb7d54..a78d37a5473fa63f59d233127cab6692ca1f7bb8"
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"
],
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "a78d37a5473fa63f59d233127cab6692ca1f7bb8..7318e2a144a5c550ebbafb4bc615fa30fabea266"
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"
],
"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\");"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "7318e2a144a5c550ebbafb4bc615fa30fabea266..4d5c25eaa453b756183d88d10a8fa94ec9a29ce9"
2016-10-11 18:12:20 +03:00
}]