mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
483e8a3f00
JavaScript: method call → function call. Go: regenerated everything.
348 lines
9.8 KiB
JSON
348 lines
9.8 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-number-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index e69de29b..398050c6 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+101"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6973df063cce62bb3a038ea4124571d47a2c9083..e1ac9add54a38da5738a49903820e2a3f5db3f52"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '102'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index 398050c6..16da476c 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+102",
|
|
"+101",
|
|
" 101"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "e1ac9add54a38da5738a49903820e2a3f5db3f52..2445bb7656755d88141c3503580a987fada88d34"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '102' with '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index 16da476c..252b3e84 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-102",
|
|
"+101",
|
|
" 101",
|
|
" 101"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "2445bb7656755d88141c3503580a987fada88d34..a489f5fb28c2cc4be7b3d8015c0f5bebe43f060e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '101' with '102'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index 252b3e84..16da476c 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-101",
|
|
"+102",
|
|
" 101",
|
|
" 101"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "a489f5fb28c2cc4be7b3d8015c0f5bebe43f060e..724c567757b9566241eee14f7b0bfa74b1bd2f09"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '102'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '101'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '102'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index 16da476c..bb77dfbd 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-102",
|
|
"-101",
|
|
" 101",
|
|
"+102"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "724c567757b9566241eee14f7b0bfa74b1bd2f09..c5684c3b9e9b42ff8b3eaac28d88f49bef71ffa9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '101'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index bb77dfbd..257e5632 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-101",
|
|
" 102"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "c5684c3b9e9b42ff8b3eaac28d88f49bef71ffa9..747da5bd094aaa871b8ef06d65a18b02c0c74f9c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-number-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"number.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '102'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"number.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/number.js b/number.js",
|
|
"index 257e5632..e69de29b 100644",
|
|
"--- a/number.js",
|
|
"+++ b/number.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-102"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "747da5bd094aaa871b8ef06d65a18b02c0c74f9c..3ab54dc1f52a044020029364417b8c1e44102ef5"
|
|
}]
|