1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/javascript/subscript-access-assignment.json
2016-10-13 18:02:14 -04:00

287 lines
8.9 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"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "afcb0de83fe2727bbbbcae76a09687ecd7042fee",
"gitDir": "test/corpus/repos/javascript",
"sha2": "847837fa18b60f276d3d7770768e52e5eb41dc76"
}
,{
"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"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "847837fa18b60f276d3d7770768e52e5eb41dc76",
"gitDir": "test/corpus/repos/javascript",
"sha2": "638161bf0a81f22ad334abb716f187f51980a0e6"
}
,{
"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\"]"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "638161bf0a81f22ad334abb716f187f51980a0e6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "78ebdf6029db034d9fde03d0603297e4a86f9e64"
}
,{
"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\"]"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "78ebdf6029db034d9fde03d0603297e4a86f9e64",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5cc5c08836f85bc29a0ba8e496fa91c4e74c1068"
}
,{
"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"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
11
]
}
},
"summary": "Deleted the 'y[\"x\"]' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
11
]
}
},
"summary": "Added the 'y[\"x\"]' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "5cc5c08836f85bc29a0ba8e496fa91c4e74c1068",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cbb141868509aeb6acee392f6e7b858e12621d4d"
}
,{
"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"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "cbb141868509aeb6acee392f6e7b858e12621d4d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1449481d7eadf3023871abd587673e1dfa1fc42f"
}
,{
"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"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-assignment.js"
],
"sha1": "1449481d7eadf3023871abd587673e1dfa1fc42f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dbbda80970d8f64f7bb03cb4be491e61fa6c27a6"
}]