1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/corpus/diff-summaries/javascript/subscript-access-string.json

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-subscript-access-string-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "subscript-access-string.js",
"end": [
1,
17
]
}
},
"summary": "Added the 'x[\"some-string\"]' subscript access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"sha1": "83b00b36c23202837381eadc552ae978ef57f0f5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "98db878a3ac653da0586d42c12f2cd835dac018d"
}
,{
"testCaseDescription": "javascript-subscript-access-string-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "subscript-access-string.js",
"end": [
1,
23
]
}
},
"summary": "Added the 'x[\"some-other-string\"]' subscript access",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "subscript-access-string.js",
"end": [
2,
17
]
}
},
"summary": "Added the 'x[\"some-string\"]' subscript access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"sha1": "98db878a3ac653da0586d42c12f2cd835dac018d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7157c914db506131bf00b9f5e021841086795f08"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"filepath": "subscript-access-string.js",
"end": [
1,
22
]
},
{
"start": [
1,
3
],
"filepath": "subscript-access-string.js",
"end": [
1,
16
]
}
]
},
"summary": "Replaced the \"some-other-string\" string with the \"some-string\" string in the x[\"some-string\"] subscript access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"sha1": "7157c914db506131bf00b9f5e021841086795f08",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4d92b308d5f619a43ed540c904b2b5b10b5c9329"
}
,{
"testCaseDescription": "javascript-subscript-access-string-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"filepath": "subscript-access-string.js",
"end": [
1,
16
]
},
{
"start": [
1,
3
],
"filepath": "subscript-access-string.js",
"end": [
1,
22
]
}
]
},
"summary": "Replaced the \"some-string\" string with the \"some-other-string\" string in the x[\"some-other-string\"] subscript access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"sha1": "4d92b308d5f619a43ed540c904b2b5b10b5c9329",
"gitDir": "test/corpus/repos/javascript",
"sha2": "76435805a581ae7a98c4109298389a504ddb2f71"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "subscript-access-string.js",
"end": [
1,
23
]
}
},
"summary": "Deleted the 'x[\"some-other-string\"]' subscript access",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "subscript-access-string.js",
"end": [
2,
17
]
}
},
"summary": "Deleted the 'x[\"some-string\"]' subscript access",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "subscript-access-string.js",
"end": [
2,
23
]
}
},
"summary": "Added the 'x[\"some-other-string\"]' subscript access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"sha1": "76435805a581ae7a98c4109298389a504ddb2f71",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6a6298a6ceee01779c8d39559606bbb70b75e334"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "subscript-access-string.js",
"end": [
1,
17
]
}
},
"summary": "Deleted the 'x[\"some-string\"]' subscript access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"sha1": "6a6298a6ceee01779c8d39559606bbb70b75e334",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dae22c7e845f3b1caa5090199b95ff0987e246ca"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "subscript-access-string.js",
"end": [
1,
23
]
}
},
"summary": "Deleted the 'x[\"some-other-string\"]' subscript access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"sha1": "dae22c7e845f3b1caa5090199b95ff0987e246ca",
"gitDir": "test/corpus/repos/javascript",
"sha2": "80490123a60bcb2826ae89e9baaba5b8b9517e14"
}]