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-string.json
2016-11-03 16:02:56 -07:00

348 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-subscript-access-string-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
17
]
}
},
"summary": "Added the 'x[\"some-string\"]' subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"patch": [
"diff --git a/subscript-access-string.js b/subscript-access-string.js",
"index e69de29..4293717 100644",
"--- a/subscript-access-string.js",
"+++ b/subscript-access-string.js",
"@@ -0,0 +1 @@",
"+x[\"some-string\"];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "b6fd9fdbec2e79ee92f6829605a2e1a54a1784ba..bf933db8b20ff7bc2d86eb5a8e8082fd78234e87"
}
,{
"testCaseDescription": "javascript-subscript-access-string-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
23
]
}
},
"summary": "Added the 'x[\"some-other-string\"]' subscript access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
17
]
}
},
"summary": "Added the 'x[\"some-string\"]' subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"patch": [
"diff --git a/subscript-access-string.js b/subscript-access-string.js",
"index 4293717..4293009 100644",
"--- a/subscript-access-string.js",
"+++ b/subscript-access-string.js",
"@@ -1 +1,3 @@",
"+x[\"some-other-string\"];",
"+x[\"some-string\"];",
" x[\"some-string\"];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "bf933db8b20ff7bc2d86eb5a8e8082fd78234e87..3cc4eb9c46cd85ade63c176295763ab093268536"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
22
]
},
{
"start": [
1,
3
],
"end": [
1,
16
]
}
]
},
"summary": "Replaced the \"some-other-string\" string with the \"some-string\" string in the x[\"some-string\"] subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"patch": [
"diff --git a/subscript-access-string.js b/subscript-access-string.js",
"index 4293009..c53d07b 100644",
"--- a/subscript-access-string.js",
"+++ b/subscript-access-string.js",
"@@ -1,3 +1,3 @@",
"-x[\"some-other-string\"];",
"+x[\"some-string\"];",
" x[\"some-string\"];",
" x[\"some-string\"];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "3cc4eb9c46cd85ade63c176295763ab093268536..182d9efc50b49dfedd82b47b3382606f3bd57567"
}
,{
"testCaseDescription": "javascript-subscript-access-string-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
16
]
},
{
"start": [
1,
3
],
"end": [
1,
22
]
}
]
},
"summary": "Replaced the \"some-string\" string with the \"some-other-string\" string in the x[\"some-other-string\"] subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"patch": [
"diff --git a/subscript-access-string.js b/subscript-access-string.js",
"index c53d07b..4293009 100644",
"--- a/subscript-access-string.js",
"+++ b/subscript-access-string.js",
"@@ -1,3 +1,3 @@",
"-x[\"some-string\"];",
"+x[\"some-other-string\"];",
" x[\"some-string\"];",
" x[\"some-string\"];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "182d9efc50b49dfedd82b47b3382606f3bd57567..203a1ff0e0cd35b08ded73803e92f3094a9a0bd7"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
23
]
}
},
"summary": "Deleted the 'x[\"some-other-string\"]' subscript access"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
17
]
}
},
"summary": "Deleted the 'x[\"some-string\"]' subscript access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
23
]
}
},
"summary": "Added the 'x[\"some-other-string\"]' subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"patch": [
"diff --git a/subscript-access-string.js b/subscript-access-string.js",
"index 4293009..89c1bc2 100644",
"--- a/subscript-access-string.js",
"+++ b/subscript-access-string.js",
"@@ -1,3 +1,2 @@",
"-x[\"some-other-string\"];",
"-x[\"some-string\"];",
" x[\"some-string\"];",
"+x[\"some-other-string\"];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "203a1ff0e0cd35b08ded73803e92f3094a9a0bd7..d4061981099d5b4d806f6786addfa3faba8b1dfe"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
17
]
}
},
"summary": "Deleted the 'x[\"some-string\"]' subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"patch": [
"diff --git a/subscript-access-string.js b/subscript-access-string.js",
"index 89c1bc2..758f8e7 100644",
"--- a/subscript-access-string.js",
"+++ b/subscript-access-string.js",
"@@ -1,2 +1 @@",
"-x[\"some-string\"];",
" x[\"some-other-string\"];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d4061981099d5b4d806f6786addfa3faba8b1dfe..0b3a01d8665ee9e2126b68009c7a8c9d41fca3c8"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
23
]
}
},
"summary": "Deleted the 'x[\"some-other-string\"]' subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"patch": [
"diff --git a/subscript-access-string.js b/subscript-access-string.js",
"index 758f8e7..e69de29 100644",
"--- a/subscript-access-string.js",
"+++ b/subscript-access-string.js",
"@@ -1 +0,0 @@",
"-x[\"some-other-string\"];"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "0b3a01d8665ee9e2126b68009c7a8c9d41fca3c8..71feda9fd80ab60adab5cf81748710b2a610173f"
}]