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-10-14 12:12:38 -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": "eebdaeb86cc9c7995529611a3517bd6e043f8941",
"gitDir": "test/corpus/repos/javascript",
"sha2": "974b0dd8de24fbce1037b9eee6822949371028c7"
}
,{
"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": "974b0dd8de24fbce1037b9eee6822949371028c7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9fe3b8356756fe98159e31b648ad5bd0ffd521d8"
}
,{
"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": "9fe3b8356756fe98159e31b648ad5bd0ffd521d8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "435695a3dc272fba7a637654614affc6b874e4b7"
}
,{
"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": "435695a3dc272fba7a637654614affc6b874e4b7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1230ae5585247641ee3b147259b354fa287ccf7a"
}
,{
"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": "1230ae5585247641ee3b147259b354fa287ccf7a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e704ca67fcd544a997a0b32c71afa8339fee378d"
}
,{
"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": "e704ca67fcd544a997a0b32c71afa8339fee378d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "027ba96a05d2c9bf326f92be7a84c088390d1c02"
}
,{
"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": "027ba96a05d2c9bf326f92be7a84c088390d1c02",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c7452ed6d75df05741cfba0f51e124d6ca72ba4a"
}]