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/member-access-assignment.json
2016-11-03 16:02:56 -07:00

348 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-member-access-assignment-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index e69de29..7a99e30 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -0,0 +1 @@",
"+y.x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "83f3153b76f49e077237997c965dc6f3c3a159bc..e3b5bd418d494825d815573a2dd33bb71bee5d48"
}
,{
"testCaseDescription": "javascript-member-access-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Added the 'y.x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 7a99e30..3204006 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1 +1,3 @@",
"+y.x = 1;",
"+y.x = 0;",
" y.x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "e3b5bd418d494825d815573a2dd33bb71bee5d48..1da355d7b96efcfa960001b22e4bc94e5be102bd"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to y.x"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 3204006..94893a3 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1,3 +1,3 @@",
"-y.x = 1;",
"+y.x = 0;",
" y.x = 0;",
" y.x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "1da355d7b96efcfa960001b22e4bc94e5be102bd..f2443f2327ec99428bb7538077575ea11136f8bd"
}
,{
"testCaseDescription": "javascript-member-access-assignment-replacement-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to y.x"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 94893a3..3204006 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1,3 +1,3 @@",
"-y.x = 0;",
"+y.x = 1;",
" y.x = 0;",
" y.x = 0;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "f2443f2327ec99428bb7538077575ea11136f8bd..396adf86163adae31b6cbe282ed485497c4f42a4"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
8
]
}
},
"summary": "Added the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 3204006..8d78a24 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1,3 +1,2 @@",
"-y.x = 1;",
"-y.x = 0;",
" y.x = 0;",
"+y.x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "396adf86163adae31b6cbe282ed485497c4f42a4..ebd783b11d81b4c31d3883606aa0ee7019afb1c3"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 8d78a24..799018d 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1,2 +1 @@",
"-y.x = 0;",
" y.x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "ebd783b11d81b4c31d3883606aa0ee7019afb1c3..f0a86404c7e04e9a627fd8464879a14361a379bd"
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
8
]
}
},
"summary": "Deleted the 'y.x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"member-access-assignment.js"
],
"patch": [
"diff --git a/member-access-assignment.js b/member-access-assignment.js",
"index 799018d..e69de29 100644",
"--- a/member-access-assignment.js",
"+++ b/member-access-assignment.js",
"@@ -1 +0,0 @@",
"-y.x = 1;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "f0a86404c7e04e9a627fd8464879a14361a379bd..faf582893e706ae259a0482d65d424fbcf137bb2"
}]