mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +03:00
287 lines
8.9 KiB
JSON
287 lines
8.9 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-method-call-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "a37267842ee6f1e161c4316af0cb35f4b632a059",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "609913d4f6d79ee00e3d411b2e3915071ad635f5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'object.someMethod(arg1, \"arg2\")' method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "609913d4f6d79ee00e3d411b2e3915071ad635f5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "33a0c4183dd058b371cce8b43c01dc788edd30f2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"arg3\" string with the \"arg2\" string in the object.someMethod(arg1, \"arg2\") method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "33a0c4183dd058b371cce8b43c01dc788edd30f2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b350dc1500aa52926e6cd6fedc4e04375a2f3828"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"arg2\" string with the \"arg3\" string in the object.someMethod(arg1, \"arg3\") method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "b350dc1500aa52926e6cd6fedc4e04375a2f3828",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ee87a9ae5d5c4a2518eb5f7ef0b26bd9b0a371e6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'object.someMethod(arg1, \"arg3\")' method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "ee87a9ae5d5c4a2518eb5f7ef0b26bd9b0a371e6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "794adc95ac0d89beca54fc417b94eaf5ac50ec58"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'object.someMethod(arg1, \"arg2\")' method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "794adc95ac0d89beca54fc417b94eaf5ac50ec58",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "db28776718addccb53343bee695b484d8a389784"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-method-call-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'object.someMethod(arg1, \"arg3\")' method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-call.js"
|
|
],
|
|
"sha1": "db28776718addccb53343bee695b484d8a389784",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7b45d5b720f557df4fbd880be8c0e292c4defdc4"
|
|
}]
|