1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/member-access-assignment.json

348 lines
11 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-member-access-assignment-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
8
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y.x' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "83f3153b76f49e077237997c965dc6f3c3a159bc..e3b5bd418d494825d815573a2dd33bb71bee5d48"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
8
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y.x' assignment"
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,
8
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y.x' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "e3b5bd418d494825d815573a2dd33bb71bee5d48..1da355d7b96efcfa960001b22e4bc94e5be102bd"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '1' with '0' in an assignment to y.x"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "1da355d7b96efcfa960001b22e4bc94e5be102bd..f2443f2327ec99428bb7538077575ea11136f8bd"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-assignment-replacement-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
7
],
"end": [
1,
8
]
},
{
"start": [
1,
7
],
"end": [
1,
8
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '0' with '1' in an assignment to y.x"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "f2443f2327ec99428bb7538077575ea11136f8bd..396adf86163adae31b6cbe282ed485497c4f42a4"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
8
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'y.x' assignment"
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,
8
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'y.x' assignment"
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,
8
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y.x' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "396adf86163adae31b6cbe282ed485497c4f42a4..ebd783b11d81b4c31d3883606aa0ee7019afb1c3"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
8
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'y.x' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "ebd783b11d81b4c31d3883606aa0ee7019afb1c3..f0a86404c7e04e9a627fd8464879a14361a379bd"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-member-access-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"member-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
8
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'y.x' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"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;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "f0a86404c7e04e9a627fd8464879a14361a379bd..faf582893e706ae259a0482d65d424fbcf137bb2"
2016-10-11 18:12:20 +03:00
}]