1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/variable.json
2016-11-03 16:02:56 -07:00

348 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-variable-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Added the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"patch": [
"diff --git a/variable.js b/variable.js",
"index e69de29..1cf4ad0 100644",
"--- a/variable.js",
"+++ b/variable.js",
"@@ -0,0 +1 @@",
"+theVar;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2e348ee88f62c0857d6f6ce2ab3ee0d46f12afeb..09aa9131842b754fdd19963205e4e00f4413871b"
}
,{
"testCaseDescription": "javascript-variable-replacement-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'theVar2' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Added the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"patch": [
"diff --git a/variable.js b/variable.js",
"index 1cf4ad0..888855a 100644",
"--- a/variable.js",
"+++ b/variable.js",
"@@ -1 +1,3 @@",
"+theVar2",
"+theVar;",
" theVar;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "09aa9131842b754fdd19963205e4e00f4413871b..0b3b0533e575b679bbba53387580ba2c730806e4"
}
,{
"testCaseDescription": "javascript-variable-delete-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
8
]
},
{
"start": [
1,
1
],
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'theVar2' identifier with the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"patch": [
"diff --git a/variable.js b/variable.js",
"index 888855a..60e041c 100644",
"--- a/variable.js",
"+++ b/variable.js",
"@@ -1,3 +1,3 @@",
"-theVar2",
"+theVar;",
" theVar;",
" theVar;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "0b3b0533e575b679bbba53387580ba2c730806e4..03875ee2891e9d8081f5d4bace0acb59724eca90"
}
,{
"testCaseDescription": "javascript-variable-replacement-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced the 'theVar' identifier with the 'theVar2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"patch": [
"diff --git a/variable.js b/variable.js",
"index 60e041c..888855a 100644",
"--- a/variable.js",
"+++ b/variable.js",
"@@ -1,3 +1,3 @@",
"-theVar;",
"+theVar2",
" theVar;",
" theVar;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "03875ee2891e9d8081f5d4bace0acb59724eca90..fc9c0d118d51bb745bf3665c575c58592deee4d5"
}
,{
"testCaseDescription": "javascript-variable-delete-replacement-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'theVar' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'theVar2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"patch": [
"diff --git a/variable.js b/variable.js",
"index 888855a..fbc7b28 100644",
"--- a/variable.js",
"+++ b/variable.js",
"@@ -1,3 +1,2 @@",
"-theVar2",
"-theVar;",
" theVar;",
"+theVar2"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fc9c0d118d51bb745bf3665c575c58592deee4d5..e286370e12767dd248982f92fd5f058e1099616e"
}
,{
"testCaseDescription": "javascript-variable-delete-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'theVar' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"patch": [
"diff --git a/variable.js b/variable.js",
"index fbc7b28..7276d95 100644",
"--- a/variable.js",
"+++ b/variable.js",
"@@ -1,2 +1 @@",
"-theVar;",
" theVar2"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e286370e12767dd248982f92fd5f058e1099616e..841c185fa272c7e634d52eca4fd38d05c1ac72a4"
}
,{
"testCaseDescription": "javascript-variable-delete-rest-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"patch": [
"diff --git a/variable.js b/variable.js",
"index 7276d95..e69de29 100644",
"--- a/variable.js",
"+++ b/variable.js",
"@@ -1 +0,0 @@",
"-theVar2"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "841c185fa272c7e634d52eca4fd38d05c1ac72a4..2642fef686808ac2a6c5edde323e87257f4f2983"
}]