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-objects-with-methods-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"objects-with-methods.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ add }' object"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"objects-with-methods.js"
|
|
],
|
|
"sha1": "8662f58f1d7ce21fddcefecae990742a5d1398dc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b591df548ffb5ef563a30246d6492b39fb69a564"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-objects-with-methods-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"objects-with-methods.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ subtract }' object"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ add }' object"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"objects-with-methods.js"
|
|
],
|
|
"sha1": "b591df548ffb5ef563a30246d6492b39fb69a564",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ee23a64bc6c8edd4994205c77bf77a35bcb40493"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-objects-with-methods-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"objects-with-methods.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'subtract' identifier with the 'add' identifier in the add method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"objects-with-methods.js"
|
|
],
|
|
"sha1": "ee23a64bc6c8edd4994205c77bf77a35bcb40493",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5afe59e01be0dfa586cf09188b26b97960e84b71"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-objects-with-methods-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"objects-with-methods.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'add' identifier with the 'subtract' identifier in the subtract method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"objects-with-methods.js"
|
|
],
|
|
"sha1": "5afe59e01be0dfa586cf09188b26b97960e84b71",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3723264ddcbd5d252f20a04e13f2813874ea7a75"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-objects-with-methods-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"objects-with-methods.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ subtract }' object"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ add }' object"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ subtract }' object"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"objects-with-methods.js"
|
|
],
|
|
"sha1": "3723264ddcbd5d252f20a04e13f2813874ea7a75",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f2e3bfb506337dbb81c078e49bfca3c4d72abefa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-objects-with-methods-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"objects-with-methods.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ add }' object"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"objects-with-methods.js"
|
|
],
|
|
"sha1": "f2e3bfb506337dbb81c078e49bfca3c4d72abefa",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "59aab91326ae0dbd9332b64ea11a42f940b4437f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-objects-with-methods-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"objects-with-methods.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ subtract }' object"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"objects-with-methods.js"
|
|
],
|
|
"sha1": "59aab91326ae0dbd9332b64ea11a42f940b4437f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ee6b3d5d274912c071eadd10cb5bea9b96b30cb8"
|
|
}]
|