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": "a70334394db6019d12e7b0784152b7931be8a143",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a0fd17b1857723ef6273a44f907cda57e37974ac"
|
|
}
|
|
,{
|
|
"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": "a0fd17b1857723ef6273a44f907cda57e37974ac",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ee9e102b7b70e841506c83d6775a06fbef86cc90"
|
|
}
|
|
,{
|
|
"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": "ee9e102b7b70e841506c83d6775a06fbef86cc90",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cdc665ab83bdfbe48d09516419efbc8293eceb28"
|
|
}
|
|
,{
|
|
"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": "cdc665ab83bdfbe48d09516419efbc8293eceb28",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "29c25335a64f0afd24c97afe81528d18081986f6"
|
|
}
|
|
,{
|
|
"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": "29c25335a64f0afd24c97afe81528d18081986f6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4dcf79e103e6c92f8c96a1774535237b7b162817"
|
|
}
|
|
,{
|
|
"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": "4dcf79e103e6c92f8c96a1774535237b7b162817",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f36d9d7eb61a638531a82fbcac3c8d2093f908a1"
|
|
}
|
|
,{
|
|
"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": "f36d9d7eb61a638531a82fbcac3c8d2093f908a1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0ae7d23e3b8ca76072bab79fd0258880ca4413d5"
|
|
}]
|