mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
354 lines
10 KiB
JSON
354 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-null-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"null.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'null' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"null.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/null.js b/null.js",
|
|
"index e69de29..ff464d1 100644",
|
|
"--- a/null.js",
|
|
"+++ b/null.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+null;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "655d7887b70794042aa3e0f4d6ea174c1b32af1c..f25bb82f823a669a0b6a9c19160ba03ab21d318b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-null-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"null.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'null' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'null' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"null.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/null.js b/null.js",
|
|
"index ff464d1..2d3c3e0 100644",
|
|
"--- a/null.js",
|
|
"+++ b/null.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+return null;",
|
|
"+null;",
|
|
" null;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "f25bb82f823a669a0b6a9c19160ba03ab21d318b..4669bb697216411b02390ac038c699f1db9d76ee"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-null-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"null.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'null' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'null' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"null.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/null.js b/null.js",
|
|
"index 2d3c3e0..3122897 100644",
|
|
"--- a/null.js",
|
|
"+++ b/null.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-return null;",
|
|
"+null;",
|
|
" null;",
|
|
" null;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "4669bb697216411b02390ac038c699f1db9d76ee..ff3a8cc7449b04b7a15a6ab31ea1f5e78283db3e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-null-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"null.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'null' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'null' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"null.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/null.js b/null.js",
|
|
"index 3122897..2d3c3e0 100644",
|
|
"--- a/null.js",
|
|
"+++ b/null.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-null;",
|
|
"+return null;",
|
|
" null;",
|
|
" null;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "ff3a8cc7449b04b7a15a6ab31ea1f5e78283db3e..0e96cfb0a6c4746ef4911d99134eebcac36edbd8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-null-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"null.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'null' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'null' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'null' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"null.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/null.js b/null.js",
|
|
"index 2d3c3e0..0eb99c8 100644",
|
|
"--- a/null.js",
|
|
"+++ b/null.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-return null;",
|
|
"-null;",
|
|
" null;",
|
|
"+return null;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "0e96cfb0a6c4746ef4911d99134eebcac36edbd8..88958970d3cca5d0413e83a7ff37f1092d0d9299"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-null-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"null.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'null' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"null.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/null.js b/null.js",
|
|
"index 0eb99c8..76137ff 100644",
|
|
"--- a/null.js",
|
|
"+++ b/null.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-null;",
|
|
" return null;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "88958970d3cca5d0413e83a7ff37f1092d0d9299..b5db27b021a3c11c985a28653aca15041f140fec"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-null-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"null.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'null' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"null.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/null.js b/null.js",
|
|
"index 76137ff..e69de29 100644",
|
|
"--- a/null.js",
|
|
"+++ b/null.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-return null;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b5db27b021a3c11c985a28653aca15041f140fec..9f36bd70533d2f145bb9661791f0ea760bf949d5"
|
|
}]
|