1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/test/corpus/diff-summaries/javascript/subscript-access-assignment.json
2016-10-11 15:13:51 -04:00

297 lines
9.3 KiB
JSON

[{
"testCaseDescription": "javascript-subscript-access-assignment-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "017dd08471859c04fa5958753782e80f6b974bb4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cc4a86eba8cdee2e08e6cff2030c5d2b7e677d8b"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "cc4a86eba8cdee2e08e6cff2030c5d2b7e677d8b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3705016f2c59cf2a7362e51f25a691619e63b0ef"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to y[\"x\"]",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "3705016f2c59cf2a7362e51f25a691619e63b0ef",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fd2d02ddfc93fb1668a6c5baf512b71ef369ea18"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
11
]
},
{
"start": [
1,
10
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to y[\"x\"]",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "fd2d02ddfc93fb1668a6c5baf512b71ef369ea18",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e4665c506aad21e4dcc6a8b7062581abe3bf62a0"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "e4665c506aad21e4dcc6a8b7062581abe3bf62a0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6bfa39fdfcb071bc8fb75a5fd05494f69a160100"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "6bfa39fdfcb071bc8fb75a5fd05494f69a160100",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5d2d00d3e46ea666a3a9b5c03696bd67cf6c731e"
}
,{
"testCaseDescription": "javascript-subscript-access-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "5d2d00d3e46ea666a3a9b5c03696bd67cf6c731e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7bc80d411bdd18724ae9d923e005035511ffc430"
}]