mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
483e8a3f00
JavaScript: method call → function call. Go: regenerated everything.
354 lines
10 KiB
JSON
354 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-false-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"false.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'false'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"false.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/false.js b/false.js",
|
|
"index e69de29b..8a639462 100644",
|
|
"--- a/false.js",
|
|
"+++ b/false.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+false;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "d7a5c35ea0a826299a22c96d0b992f92bc85bb91..c0b7401ea04f1b37426f7bc4773e77fdf8c0f3c1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-false-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"false.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'false' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'false'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"false.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/false.js b/false.js",
|
|
"index 8a639462..86574b16 100644",
|
|
"--- a/false.js",
|
|
"+++ b/false.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+return false;",
|
|
"+false;",
|
|
" false;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "c0b7401ea04f1b37426f7bc4773e77fdf8c0f3c1..2e31f217aa32ada1925fb2ec1cc0411d0edcd1b0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-false-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"false.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'false'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'false' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"false.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/false.js b/false.js",
|
|
"index 86574b16..7bae7c53 100644",
|
|
"--- a/false.js",
|
|
"+++ b/false.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-return false;",
|
|
"+false;",
|
|
" false;",
|
|
" false;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "2e31f217aa32ada1925fb2ec1cc0411d0edcd1b0..53d6e0873afb002215a77619b6e3f4604bc27453"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-false-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"false.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'false' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'false'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"false.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/false.js b/false.js",
|
|
"index 7bae7c53..86574b16 100644",
|
|
"--- a/false.js",
|
|
"+++ b/false.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-false;",
|
|
"+return false;",
|
|
" false;",
|
|
" false;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "53d6e0873afb002215a77619b6e3f4604bc27453..c2ef01b79b9b22e6e6f49923770ba63b149870a8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-false-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"false.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'false' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'false'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'false' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"false.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/false.js b/false.js",
|
|
"index 86574b16..85b5be91 100644",
|
|
"--- a/false.js",
|
|
"+++ b/false.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-return false;",
|
|
"-false;",
|
|
" false;",
|
|
"+return false;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "c2ef01b79b9b22e6e6f49923770ba63b149870a8..428cba3e1b4d7186ecced8004ddc6b1e82df3f0e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-false-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"false.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'false'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"false.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/false.js b/false.js",
|
|
"index 85b5be91..1f328b3b 100644",
|
|
"--- a/false.js",
|
|
"+++ b/false.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-false;",
|
|
" return false;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "428cba3e1b4d7186ecced8004ddc6b1e82df3f0e..6338763787e51da57da095e9e8e91e4d56873327"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-false-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"false.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'false' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"false.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/false.js b/false.js",
|
|
"index 1f328b3b..e69de29b 100644",
|
|
"--- a/false.js",
|
|
"+++ b/false.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-return false;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6338763787e51da57da095e9e8e91e4d56873327..d9d6e19c015a3f2dbb9d04d3867b13889dd798ac"
|
|
}]
|