mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
348 lines
11 KiB
JSON
348 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-subscript-access-assignment-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y[\"x\"]' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
|
|
"index e69de29..6b6d48d 100644",
|
|
"--- a/subscript-access-assignment.js",
|
|
"+++ b/subscript-access-assignment.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+y[\"x\"] = 0;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "faf582893e706ae259a0482d65d424fbcf137bb2..b59647bbb7592da11c7d4ac78458e63e854b04f3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-assignment-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y[\"x\"]' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y[\"x\"]' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
|
|
"index 6b6d48d..17d3ff4 100644",
|
|
"--- a/subscript-access-assignment.js",
|
|
"+++ b/subscript-access-assignment.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+y[\"x\"] = 1;",
|
|
"+y[\"x\"] = 0;",
|
|
" y[\"x\"] = 0;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b59647bbb7592da11c7d4ac78458e63e854b04f3..8b0173919309e1b0e73ab4a4a4fcd8dd02bc0ccb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-assignment-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '0' in an assignment to y[\"x\"]"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
|
|
"index 17d3ff4..d856ac0 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;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "8b0173919309e1b0e73ab4a4a4fcd8dd02bc0ccb..461eebed467430133c1996ed21dd6e72dd4f06ac"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-assignment-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '0' with '1' in an assignment to y[\"x\"]"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
|
|
"index d856ac0..17d3ff4 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;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "461eebed467430133c1996ed21dd6e72dd4f06ac..689acd0e8c575ae20e8d6acaa4522119800c3a39"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-assignment-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y[\"x\"]' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y[\"x\"]' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y[\"x\"]' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
|
|
"index 17d3ff4..cdcb426 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;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "689acd0e8c575ae20e8d6acaa4522119800c3a39..a124eee21e5e3f952e498fb2175d1497ca06aa13"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-assignment-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y[\"x\"]' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
|
|
"index cdcb426..0407c3a 100644",
|
|
"--- a/subscript-access-assignment.js",
|
|
"+++ b/subscript-access-assignment.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-y[\"x\"] = 0;",
|
|
" y[\"x\"] = 1;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "a124eee21e5e3f952e498fb2175d1497ca06aa13..194ef1fb19bf18a70a7e1a0dd198c832d2383bd9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-assignment-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y[\"x\"]' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subscript-access-assignment.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subscript-access-assignment.js b/subscript-access-assignment.js",
|
|
"index 0407c3a..e69de29 100644",
|
|
"--- a/subscript-access-assignment.js",
|
|
"+++ b/subscript-access-assignment.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-y[\"x\"] = 1;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "194ef1fb19bf18a70a7e1a0dd198c832d2383bd9..ec86aaba01801d01aca70fd31403642be1e2d438"
|
|
}]
|