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
2016-10-11 11:26:57 -04:00

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-subscript-access-string-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "subscript-access-string.js",
"end": [
1,
17
]
}
},
"summary": "Added the 'x[\"some-string\"]' subscript access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"sha1": "7ae7a3452b9ea0561d469df9ecaf32e6eb2d9474",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5ff8e2661eac926dd7ed244797f9eada19ad7f5d"
}
,{
"testCaseDescription": "javascript-subscript-access-string-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "subscript-access-string.js",
"end": [
1,
23
]
}
},
"summary": "Added the 'x[\"some-other-string\"]' subscript access",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "subscript-access-string.js",
"end": [
2,
17
]
}
},
"summary": "Added the 'x[\"some-string\"]' subscript access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"sha1": "5ff8e2661eac926dd7ed244797f9eada19ad7f5d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9af8071731157d775318d5114e4dcac580f6f716"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"these": [
{
"start": [
1,
3
],
"name": "subscript-access-string.js",
"end": [
1,
22
]
},
{
"start": [
1,
3
],
"name": "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": "9af8071731157d775318d5114e4dcac580f6f716",
"gitDir": "test/corpus/repos/javascript",
"sha2": "eae6318d1c52e7127cc46aff2e75528ad361f57c"
}
,{
"testCaseDescription": "javascript-subscript-access-string-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"these": [
{
"start": [
1,
3
],
"name": "subscript-access-string.js",
"end": [
1,
16
]
},
{
"start": [
1,
3
],
"name": "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": "eae6318d1c52e7127cc46aff2e75528ad361f57c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "58eaf98e9194b3d599455e7e5f250a420f82d155"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "subscript-access-string.js",
"end": [
1,
23
]
}
},
"summary": "Deleted the 'x[\"some-other-string\"]' subscript access",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "subscript-access-string.js",
"end": [
2,
17
]
}
},
"summary": "Deleted the 'x[\"some-string\"]' subscript access",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "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": "58eaf98e9194b3d599455e7e5f250a420f82d155",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8474b084fdbea46f9d61c8f84a08a1b65312a389"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "subscript-access-string.js",
"end": [
1,
17
]
}
},
"summary": "Deleted the 'x[\"some-string\"]' subscript access",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-string.js"
],
"sha1": "8474b084fdbea46f9d61c8f84a08a1b65312a389",
"gitDir": "test/corpus/repos/javascript",
"sha2": "72743b4417df690550bad30298e5a3fcf7b72115"
}
,{
"testCaseDescription": "javascript-subscript-access-string-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-string.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "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": "72743b4417df690550bad30298e5a3fcf7b72115",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6d2a9f7093c2227f7d7eeedabf694118f5f17c73"
}]