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-undefined-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"undefined.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'undefined' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/undefined.js b/undefined.js",
|
|
"index e69de29..c2ca02c 100644",
|
|
"--- a/undefined.js",
|
|
"+++ b/undefined.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+undefined;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "9f36bd70533d2f145bb9661791f0ea760bf949d5..5ea4083212daf3e2a900de3b68508a604ade8596"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"undefined.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'undefined' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'undefined' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/undefined.js b/undefined.js",
|
|
"index c2ca02c..a4352cc 100644",
|
|
"--- a/undefined.js",
|
|
"+++ b/undefined.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+return undefined;",
|
|
"+undefined;",
|
|
" undefined;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "5ea4083212daf3e2a900de3b68508a604ade8596..d6cc7e90bce713f04bcfee5d53e1a112b1bfad0a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"undefined.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'undefined' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'undefined' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/undefined.js b/undefined.js",
|
|
"index a4352cc..52ea257 100644",
|
|
"--- a/undefined.js",
|
|
"+++ b/undefined.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-return undefined;",
|
|
"+undefined;",
|
|
" undefined;",
|
|
" undefined;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "d6cc7e90bce713f04bcfee5d53e1a112b1bfad0a..718b0c7d530a5e063201c119f59091b97d0e90d3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"undefined.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'undefined' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'undefined' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/undefined.js b/undefined.js",
|
|
"index 52ea257..a4352cc 100644",
|
|
"--- a/undefined.js",
|
|
"+++ b/undefined.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-undefined;",
|
|
"+return undefined;",
|
|
" undefined;",
|
|
" undefined;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "718b0c7d530a5e063201c119f59091b97d0e90d3..829fc4f00b66a91b67b0d0d41023f3d48fb34aa8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"undefined.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'undefined' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'undefined' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'undefined' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/undefined.js b/undefined.js",
|
|
"index a4352cc..a16e747 100644",
|
|
"--- a/undefined.js",
|
|
"+++ b/undefined.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-return undefined;",
|
|
"-undefined;",
|
|
" undefined;",
|
|
"+return undefined;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "829fc4f00b66a91b67b0d0d41023f3d48fb34aa8..ca6a3d94c002135dcd0d1096f808eadb016c1adf"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"undefined.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'undefined' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/undefined.js b/undefined.js",
|
|
"index a16e747..fb505bb 100644",
|
|
"--- a/undefined.js",
|
|
"+++ b/undefined.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-undefined;",
|
|
" return undefined;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "ca6a3d94c002135dcd0d1096f808eadb016c1adf..2952f11c8fb57194cae4acde26f39231327790b0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-undefined-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"undefined.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'undefined' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"undefined.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/undefined.js b/undefined.js",
|
|
"index fb505bb..e69de29 100644",
|
|
"--- a/undefined.js",
|
|
"+++ b/undefined.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-return undefined;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "2952f11c8fb57194cae4acde26f39231327790b0..bc804312603351b07d0e242d9b3675d646934512"
|
|
}]
|