mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.8 KiB
JSON
287 lines
8.8 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-member-access-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.someProperty' member access"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "8c89ac29c02f4714dc946e2824152d320b623e36",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7819fe045b5f19ee470b8f0d2371d9344f6c183a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.someOtherProperty' member access"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.someProperty' member access"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "7819fe045b5f19ee470b8f0d2371d9344f6c183a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "823d52271b2d99c48216948e20cec0ba6b9d1e6e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
20
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'someOtherProperty' identifier with the 'someProperty' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "823d52271b2d99c48216948e20cec0ba6b9d1e6e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "dd0030c04fcaf1e5784706aee9760bd9904495b8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
20
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'someProperty' identifier with the 'someOtherProperty' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "dd0030c04fcaf1e5784706aee9760bd9904495b8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "88e2ad3ffa0cca807aeb6e2ea97562c04034a954"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.someOtherProperty' member access"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.someProperty' member access"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.someOtherProperty' member access"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "88e2ad3ffa0cca807aeb6e2ea97562c04034a954",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2aaeaae2047b4dea6cb7f6a0851e0314b682b856"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.someProperty' member access"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "2aaeaae2047b4dea6cb7f6a0851e0314b682b856",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5ee7c25fc11122ae36f4a585fafbe0d0f69ed1b9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-member-access-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"member-access.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.someOtherProperty' member access"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"member-access.js"
|
|
],
|
|
"sha1": "5ee7c25fc11122ae36f4a585fafbe0d0f69ed1b9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b5aeb51a21b78d1547cc65d09bad74c4e27f68c6"
|
|
}]
|