mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
297 lines
9.2 KiB
JSON
297 lines
9.2 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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "fe1724a351896c9096078d5bc7dfa8e89539cddb",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ac71d5f2e73babcd37c24cb8fade58d08652beae"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y.x' assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "ac71d5f2e73babcd37c24cb8fade58d08652beae",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "45817a82720c40b2e12c4e53e11e3a405e840783"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "45817a82720c40b2e12c4e53e11e3a405e840783",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0b254a3f1120d1cee678a827d0bf5bfb6b57156b"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "0b254a3f1120d1cee678a827d0bf5bfb6b57156b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "24e43482adbbe8bdbb56191bc3b2ac1387049f77"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y.x' assignment",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y.x' assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "24e43482adbbe8bdbb56191bc3b2ac1387049f77",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ec5bc8a34cb2ac731d35de1a1ef2a41f479d9085"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "ec5bc8a34cb2ac731d35de1a1ef2a41f479d9085",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "17c753388d910dee728182ae1a1f3ad9fdce2616"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access-assignment.js"
|
|
],
|
|
"sha1": "17c753388d910dee728182ae1a1f3ad9fdce2616",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "43c155e0e1c235f4a7a66d19b55ec670aa456167"
|
|
}]
|