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

309 lines
10 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "7ae7a3452b9ea0561d469df9ecaf32e6eb2d9474",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "5ff8e2661eac926dd7ed244797f9eada19ad7f5d"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "5ff8e2661eac926dd7ed244797f9eada19ad7f5d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "9af8071731157d775318d5114e4dcac580f6f716"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "9af8071731157d775318d5114e4dcac580f6f716",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "eae6318d1c52e7127cc46aff2e75528ad361f57c"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "eae6318d1c52e7127cc46aff2e75528ad361f57c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "58eaf98e9194b3d599455e7e5f250a420f82d155"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "58eaf98e9194b3d599455e7e5f250a420f82d155",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "8474b084fdbea46f9d61c8f84a08a1b65312a389"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "8474b084fdbea46f9d61c8f84a08a1b65312a389",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "72743b4417df690550bad30298e5a3fcf7b72115"
2016-10-11 18:12:20 +03:00
}
,{
"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"
],
2016-10-11 18:26:57 +03:00
"sha1": "72743b4417df690550bad30298e5a3fcf7b72115",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:26:57 +03:00
"sha2": "6d2a9f7093c2227f7d7eeedabf694118f5f17c73"
2016-10-11 18:12:20 +03:00
}]