mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
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": "3404e2f9981f841657789983a30885db1872d717..e32d226417893d90b90c717bc9b4739ef2731415"
|
|
}
|
|
,{
|
|
"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": "e32d226417893d90b90c717bc9b4739ef2731415..a44e2cc71169f20db65adf8d366682a6fe00e290"
|
|
}
|
|
,{
|
|
"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": "a44e2cc71169f20db65adf8d366682a6fe00e290..2a86beea0ad48757fb4535a6b4e01f2a8d1eb126"
|
|
}
|
|
,{
|
|
"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": "2a86beea0ad48757fb4535a6b4e01f2a8d1eb126..d17653b6c7ba93cfb9d0ff774a68e29b1aee2d9b"
|
|
}
|
|
,{
|
|
"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": "d17653b6c7ba93cfb9d0ff774a68e29b1aee2d9b..fa9113a78c78561620fd5ad48a5a4d3b22056832"
|
|
}
|
|
,{
|
|
"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": "fa9113a78c78561620fd5ad48a5a4d3b22056832..0cb01c5633b7b5a84ed2d5f6c50fff5c609755c5"
|
|
}
|
|
,{
|
|
"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": "0cb01c5633b7b5a84ed2d5f6c50fff5c609755c5..5d563ac383acc3c789fbd552c697d625c0f424fc"
|
|
}]
|