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/subscript-access-string.json
2016-10-14 12:19:31 -04:00

287 lines
9.1 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"
],
"sha1": "66e1a394a9c4de7fde0b87d1544fa3dbd6b76836",
"gitDir": "test/corpus/repos/javascript",
"sha2": "80777a734edd6bb7424f0ce22d08165e2a24a49c"
}
,{
"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"
],
"sha1": "80777a734edd6bb7424f0ce22d08165e2a24a49c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "511701800d4c9abd384d70ed822b23dd258fe921"
}
,{
"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"
],
"sha1": "511701800d4c9abd384d70ed822b23dd258fe921",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b6ecedf1e472dd9e7c45b673c5d0f13affca6e7d"
}
,{
"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"
],
"sha1": "b6ecedf1e472dd9e7c45b673c5d0f13affca6e7d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a87356f1583f4c982e016ccc23e63eb9d15ac505"
}
,{
"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"
],
"sha1": "a87356f1583f4c982e016ccc23e63eb9d15ac505",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7d60bb00a9d81493b00257bc5213bcf798d7a632"
}
,{
"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"
],
"sha1": "7d60bb00a9d81493b00257bc5213bcf798d7a632",
"gitDir": "test/corpus/repos/javascript",
"sha2": "551ebdffffc4bfe39c0e1d03eb225759f1467fc0"
}
,{
"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"
],
"sha1": "551ebdffffc4bfe39c0e1d03eb225759f1467fc0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "23be74584aa29c995896e5ccae7e16234ec7f12d"
}]