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/subscript-access-assignment.json

348 lines
11 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-subscript-access-assignment-insert-test",
"expectedResult": {
"changes": {
"subscript-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,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y[\"x\"]' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index e69de29b..6b6d48d2 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-access-assignment.js",
"@@ -0,0 +1 @@",
"+y[\"x\"] = 0;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "4771589971576b44762a611a7b4b4cbdb9259735..0cfddba7d07880a41ca2de997a9a905ca8395b86"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-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,
11
]
}
},
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,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y[\"x\"]' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index 6b6d48d2..17d3ff48 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-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": "0cfddba7d07880a41ca2de997a9a905ca8395b86..c4524a646dc110253088196709418c9c7973b24e"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
10
],
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"end": [
1,
11
]
}
]
},
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": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index 17d3ff48..d856ac0d 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-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": "c4524a646dc110253088196709418c9c7973b24e..5441e85813c5d2a2a412609c15592022ecac4471"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
10
],
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"end": [
1,
11
]
}
]
},
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": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index d856ac0d..17d3ff48 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-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": "5441e85813c5d2a2a412609c15592022ecac4471..75a07bef0582ba59d8b878d49058c73cba104455"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-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,
11
]
}
},
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,
11
]
}
},
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,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'y[\"x\"]' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index 17d3ff48..cdcb426e 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-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": "75a07bef0582ba59d8b878d49058c73cba104455..921de36fbbb7fea44d2d5910e8b6a58e9866f8c3"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-test",
"expectedResult": {
"changes": {
"subscript-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,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'y[\"x\"]' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index cdcb426e..0407c3a1 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-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": "921de36fbbb7fea44d2d5910e8b6a58e9866f8c3..bf26a76e4e4ccc3b3705ef27a866546586322ea3"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-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,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'y[\"x\"]' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"patch": [
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
"index 0407c3a1..e69de29b 100644",
"--- a/subscript-access-assignment.js",
"+++ b/subscript-access-assignment.js",
"@@ -1 +0,0 @@",
"-y[\"x\"] = 1;"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "bf26a76e4e4ccc3b3705ef27a866546586322ea3..a51b44e93b10645f205b119e37a93f384ee4d64c"
2016-10-11 18:12:20 +03:00
}]