mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
287 lines
8.9 KiB
JSON
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": "011cd67258bd4fe5f96eb7bc21458a38abe5e737",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "87087b6207d2b279e5a819f86bac0b70c10a85a6"
|
|
}
|
|
,{
|
|
"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": "87087b6207d2b279e5a819f86bac0b70c10a85a6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bf0c7299b2ee1385c016a7fa0cec62ece912cda5"
|
|
}
|
|
,{
|
|
"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": "bf0c7299b2ee1385c016a7fa0cec62ece912cda5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "add55dfecf7e3098ba68dbb114505e6a971ed9e8"
|
|
}
|
|
,{
|
|
"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": "add55dfecf7e3098ba68dbb114505e6a971ed9e8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f93e4f0787e2931ba674075850723d57eb8d2f6e"
|
|
}
|
|
,{
|
|
"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": "f93e4f0787e2931ba674075850723d57eb8d2f6e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "30020691d86f7f26f6bf9d8d8aa0e6a30e8474d4"
|
|
}
|
|
,{
|
|
"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": "30020691d86f7f26f6bf9d8d8aa0e6a30e8474d4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c80747eef652cea8bb1a62ff50cfd7cf446de54a"
|
|
}
|
|
,{
|
|
"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": "c80747eef652cea8bb1a62ff50cfd7cf446de54a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1c3ffbfa31c0ab6e870edd894479afeeff67077a"
|
|
}]
|