1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/subscript-access-assignment.json
2016-10-11 12:52:26 -04:00

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-subscript-access-assignment-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "subscript-access-assignment.js",
"end": [
1,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "76c3044c4a51bb3a3d9ac11057bd645a99531931",
"gitDir": "test/corpus/repos/javascript",
"sha2": "133880529a8a886fd17dfa2002af6e3314cf619e"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "subscript-access-assignment.js",
"end": [
1,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "subscript-access-assignment.js",
"end": [
2,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "133880529a8a886fd17dfa2002af6e3314cf619e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "09a0625db2683ac0a081d394cc1a016266aa6caa"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"filepath": "subscript-access-assignment.js",
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"filepath": "subscript-access-assignment.js",
"end": [
1,
11
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to y[\"x\"]",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "09a0625db2683ac0a081d394cc1a016266aa6caa",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fed2e9a6540f863e45fbcc9e43d2ff0d6823cfa1"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"filepath": "subscript-access-assignment.js",
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"filepath": "subscript-access-assignment.js",
"end": [
1,
11
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to y[\"x\"]",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "fed2e9a6540f863e45fbcc9e43d2ff0d6823cfa1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "53f18bb523d53f0e37c551f9551fdf7d0d0df894"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "subscript-access-assignment.js",
"end": [
1,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "subscript-access-assignment.js",
"end": [
2,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "subscript-access-assignment.js",
"end": [
2,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "53f18bb523d53f0e37c551f9551fdf7d0d0df894",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e16d2224f4ca8089414ea4e64330375b69e4b45b"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "subscript-access-assignment.js",
"end": [
1,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "e16d2224f4ca8089414ea4e64330375b69e4b45b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "409ca472403167d80dcbc1f9f1686581bcdbafc6"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "subscript-access-assignment.js",
"end": [
1,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "409ca472403167d80dcbc1f9f1686581bcdbafc6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ce44e2e8b8fa69e9c1d43bc9d72205e67352d30e"
}]