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
11 KiB
JSON
348 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-template-string-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`one line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index e69de29b..01f859b1 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+`one line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b0cccfc42d36aba8e42003998233c798245c627f..2040236e0fd466e286462380a49b72595d79d6a9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`multi line`' template string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`one line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 01f859b1..777fde68 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+`multi line`",
|
|
"+`one line`",
|
|
" `one line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "2040236e0fd466e286462380a49b72595d79d6a9..05f27649aa9bc187d1ebfcc9810842f8992e3fd7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '`multi line`' template string with the '`one line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 777fde68..657129fc 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-`multi line`",
|
|
"+`one line`",
|
|
" `one line`",
|
|
" `one line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "05f27649aa9bc187d1ebfcc9810842f8992e3fd7..aa5a50db04e0712c494739ab35e56368a5a3f498"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '`one line`' template string with the '`multi line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 657129fc..777fde68 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-`one line`",
|
|
"+`multi line`",
|
|
" `one line`",
|
|
" `one line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "aa5a50db04e0712c494739ab35e56368a5a3f498..b81a678bbbb5ef57d6c873d1fa629c0c23463dda"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`multi line`' template string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`one line`' template string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`multi line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 777fde68..2b8c0dde 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-`multi line`",
|
|
"-`one line`",
|
|
" `one line`",
|
|
"+`multi line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b81a678bbbb5ef57d6c873d1fa629c0c23463dda..f70c47ebd50d4c6a193f45e79414ba29cb16e719"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`one line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 2b8c0dde..399f1173 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-`one line`",
|
|
" `multi line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "f70c47ebd50d4c6a193f45e79414ba29cb16e719..bf45487f8f0f916e3bbd3a0b39f3dea7f723e069"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`multi line`' template string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/template-string.js b/template-string.js",
|
|
"index 399f1173..e69de29b 100644",
|
|
"--- a/template-string.js",
|
|
"+++ b/template-string.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-`multi line`"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "bf45487f8f0f916e3bbd3a0b39f3dea7f723e069..6e93ce14abfffa0befb5a6168efdc830619e0319"
|
|
}]
|