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.
324 lines
9.3 KiB
JSON
324 lines
9.3 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-array-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ \"item1\" ]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.js b/array.js",
|
|
"index e69de29b..33355825 100644",
|
|
"--- a/array.js",
|
|
"+++ b/array.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+[ \"item1\" ];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "89b3d4cd2ef38999c223c69de3011646b1f43c24..82c5ec73355d6296c1bc8e6fbcd9606635930f42"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ \"item1\", \"item2\" ]' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ \"item1\" ]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.js b/array.js",
|
|
"index 33355825..cf37d7c1 100644",
|
|
"--- a/array.js",
|
|
"+++ b/array.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+[ \"item1\", \"item2\" ];",
|
|
"+[ \"item1\" ];",
|
|
" [ \"item1\" ];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "82c5ec73355d6296c1bc8e6fbcd9606635930f42..2c0dab888be8bb07c850408ff7f3c918c9b2f679"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the \"item2\" string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.js b/array.js",
|
|
"index cf37d7c1..c2cb17fa 100644",
|
|
"--- a/array.js",
|
|
"+++ b/array.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-[ \"item1\", \"item2\" ];",
|
|
"+[ \"item1\" ];",
|
|
" [ \"item1\" ];",
|
|
" [ \"item1\" ];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "2c0dab888be8bb07c850408ff7f3c918c9b2f679..2836ffcd06212158191d83c6d23a76b86cd06aa6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the \"item2\" string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.js b/array.js",
|
|
"index c2cb17fa..cf37d7c1 100644",
|
|
"--- a/array.js",
|
|
"+++ b/array.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-[ \"item1\" ];",
|
|
"+[ \"item1\", \"item2\" ];",
|
|
" [ \"item1\" ];",
|
|
" [ \"item1\" ];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "2836ffcd06212158191d83c6d23a76b86cd06aa6..6c43843105004658edd13b116c23d3feffc3efb7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ \"item1\" ]' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ \"item1\", \"item2\" ]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.js b/array.js",
|
|
"index cf37d7c1..a4d92b81 100644",
|
|
"--- a/array.js",
|
|
"+++ b/array.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-[ \"item1\", \"item2\" ];",
|
|
"-[ \"item1\" ];",
|
|
" [ \"item1\" ];",
|
|
"+[ \"item1\", \"item2\" ];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6c43843105004658edd13b116c23d3feffc3efb7..379a870647ba9da2b5faf25da3bd60c6d3983e47"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ \"item1\" ]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.js b/array.js",
|
|
"index a4d92b81..7f2f50e6 100644",
|
|
"--- a/array.js",
|
|
"+++ b/array.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-[ \"item1\" ];",
|
|
" [ \"item1\", \"item2\" ];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "379a870647ba9da2b5faf25da3bd60c6d3983e47..ca784abe43a28e84e087f70495667e2d0cc5ed77"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/array.js b/array.js",
|
|
"index 7f2f50e6..e69de29b 100644",
|
|
"--- a/array.js",
|
|
"+++ b/array.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-[ \"item1\", \"item2\" ];"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "ca784abe43a28e84e087f70495667e2d0cc5ed77..6a98861e426cf72452392e143d875b8ccd968a2c"
|
|
}]
|