mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
287 lines
8.8 KiB
JSON
287 lines
8.8 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-member-access-assignment-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y.x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "fc37323e4ce1e1a8f36d5c4d359e993026d32f78",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cec54b96fcb0ec67d7522d4225c137597be21b83"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y.x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y.x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "cec54b96fcb0ec67d7522d4225c137597be21b83",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f2bf6ef6764c9b4d583784125467ccfc0bb5212c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '0' in an assignment to y.x"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "f2bf6ef6764c9b4d583784125467ccfc0bb5212c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "99ce3bda36caf74ca3f6d193147e0ea1145516f3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '0' with '1' in an assignment to y.x"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "99ce3bda36caf74ca3f6d193147e0ea1145516f3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a1569c0f32457be606cadc5aade85da326ab2495"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y.x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y.x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y.x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "a1569c0f32457be606cadc5aade85da326ab2495",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "213c086c3a7b093d079a2db56cb6a4fd0deb3ea0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y.x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "213c086c3a7b093d079a2db56cb6a4fd0deb3ea0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fe80556bc2ac80c04b08cccc79d74f3bd4154252"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-assignment-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access-assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y.x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "fe80556bc2ac80c04b08cccc79d74f3bd4154252",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a54212fd738c79646d7c35045d60217d25df7e8a"
|
|
}]
|