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-11-01 10:03:25 -05: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": "4c278dba39541a15d92a474e30abd18009989d53",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3a94ecc5640d497edc136a58e3732b9da4f951b0"
}
,{
"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": "3a94ecc5640d497edc136a58e3732b9da4f951b0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d421f5b1225655cca2faaf945f8ad3b9576b519e"
}
,{
"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": "d421f5b1225655cca2faaf945f8ad3b9576b519e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a013d3d8115320af6d71bc7a5aa4043ab9ff100c"
}
,{
"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": "a013d3d8115320af6d71bc7a5aa4043ab9ff100c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "723551ba66cd479e5b91e632627e0ebb836dbe38"
}
,{
"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": "723551ba66cd479e5b91e632627e0ebb836dbe38",
"gitDir": "test/corpus/repos/javascript",
"sha2": "389fcec55bd47072d0d017834f5acfffdcbc3fa9"
}
,{
"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": "389fcec55bd47072d0d017834f5acfffdcbc3fa9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e2d778b8f360801caff8b635964a37af1c03ca47"
}
,{
"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": "e2d778b8f360801caff8b635964a37af1c03ca47",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d634acd5aed3ab7ef4a9914234758a3bf356d2c4"
}]