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.
348 lines
11 KiB
JSON
348 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-boolean-operator-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i || j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index e69de29b..7280a98c 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+i || j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "68249c6faa764e8f289c3ae7afb4c98267e953d8..3cc5dca41d21643bc3f747a52b88c31e6563d6ed"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i && j' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i || j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index 7280a98c..fe3f3064 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+i && j;",
|
|
"+i || j;",
|
|
" i || j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "3cc5dca41d21643bc3f747a52b88c31e6563d6ed..48f0f67eaa06dba7fc3c8f381f380b23e171cd43"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'i && j' boolean operator with the 'i || j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index fe3f3064..273c0ee8 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-i && j;",
|
|
"+i || j;",
|
|
" i || j;",
|
|
" i || j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "48f0f67eaa06dba7fc3c8f381f380b23e171cd43..253a952891f8ab38a872a1544b27d7372b223bcb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'i || j' boolean operator with the 'i && j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index 273c0ee8..fe3f3064 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-i || j;",
|
|
"+i && j;",
|
|
" i || j;",
|
|
" i || j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "253a952891f8ab38a872a1544b27d7372b223bcb..6cfd731b9477f9b2c190e140a112ecf6854b4bef"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i && j' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i || j' boolean operator"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i && j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index fe3f3064..7f4873c1 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-i && j;",
|
|
"-i || j;",
|
|
" i || j;",
|
|
"+i && j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6cfd731b9477f9b2c190e140a112ecf6854b4bef..c7af49d44705dcf8ee38e13159ddc09eea64f683"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i || j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index 7f4873c1..c6921d12 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-i || j;",
|
|
" i && j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "c7af49d44705dcf8ee38e13159ddc09eea64f683..47df410d73472fbeb7cf2ebef0d6f21096395e51"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-boolean-operator-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"boolean-operator.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i && j' boolean operator"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"boolean-operator.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/boolean-operator.js b/boolean-operator.js",
|
|
"index c6921d12..e69de29b 100644",
|
|
"--- a/boolean-operator.js",
|
|
"+++ b/boolean-operator.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-i && j;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "47df410d73472fbeb7cf2ebef0d6f21096395e51..e94c1e8feb32d2d104b927720bdde792ff068d76"
|
|
}]
|