1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/undefined.json

354 lines
10 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-undefined-insert-test",
"expectedResult": {
"changes": {
"undefined.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
10
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'undefined' identifier"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "9f36bd70533d2f145bb9661791f0ea760bf949d5..5ea4083212daf3e2a900de3b68508a604ade8596"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-undefined-replacement-insert-test",
"expectedResult": {
"changes": {
"undefined.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'undefined' return statement"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
10
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'undefined' identifier"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "5ea4083212daf3e2a900de3b68508a604ade8596..d6cc7e90bce713f04bcfee5d53e1a112b1bfad0a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-undefined-delete-insert-test",
"expectedResult": {
"changes": {
"undefined.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
10
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'undefined' identifier"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'undefined' return statement"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "d6cc7e90bce713f04bcfee5d53e1a112b1bfad0a..718b0c7d530a5e063201c119f59091b97d0e90d3"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-undefined-replacement-test",
"expectedResult": {
"changes": {
"undefined.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'undefined' return statement"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
10
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'undefined' identifier"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "718b0c7d530a5e063201c119f59091b97d0e90d3..829fc4f00b66a91b67b0d0d41023f3d48fb34aa8"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-undefined-delete-replacement-test",
"expectedResult": {
"changes": {
"undefined.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'undefined' return statement"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
10
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'undefined' identifier"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'undefined' return statement"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "829fc4f00b66a91b67b0d0d41023f3d48fb34aa8..ca6a3d94c002135dcd0d1096f808eadb016c1adf"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-undefined-delete-test",
"expectedResult": {
"changes": {
"undefined.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
10
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'undefined' identifier"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "ca6a3d94c002135dcd0d1096f808eadb016c1adf..2952f11c8fb57194cae4acde26f39231327790b0"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-undefined-delete-rest-test",
"expectedResult": {
"changes": {
"undefined.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
18
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'undefined' return statement"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "2952f11c8fb57194cae4acde26f39231327790b0..bc804312603351b07d0e242d9b3675d646934512"
2016-10-11 18:12:20 +03:00
}]