1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/function-call.json
2016-10-13 17:58:17 -04:00

287 lines
8.9 KiB
JSON

[{
"testCaseDescription": "javascript-function-call-insert-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Added the 'someFunction(arg1, \"arg2\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"sha1": "7a54cae663d76578407d5aee62ac269e6f35818d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f2be82001fb813723585ef814cfb0f20e672cb43"
}
,{
"testCaseDescription": "javascript-function-call-replacement-insert-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Added the 'someFunction(arg1, \"arg3\")' function call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
27
]
}
},
"summary": "Added the 'someFunction(arg1, \"arg2\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"sha1": "f2be82001fb813723585ef814cfb0f20e672cb43",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4577a3437e641690887c56d82cdbaa51648a95c8"
}
,{
"testCaseDescription": "javascript-function-call-delete-insert-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
26
]
},
{
"start": [
1,
20
],
"end": [
1,
26
]
}
]
},
"summary": "Replaced the \"arg3\" string with the \"arg2\" string in the someFunction(arg1, \"arg2\") function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"sha1": "4577a3437e641690887c56d82cdbaa51648a95c8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "868de74f1870c3ed98f85dd5e79dcdbc7025a030"
}
,{
"testCaseDescription": "javascript-function-call-replacement-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"end": [
1,
26
]
},
{
"start": [
1,
20
],
"end": [
1,
26
]
}
]
},
"summary": "Replaced the \"arg2\" string with the \"arg3\" string in the someFunction(arg1, \"arg3\") function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"sha1": "868de74f1870c3ed98f85dd5e79dcdbc7025a030",
"gitDir": "test/corpus/repos/javascript",
"sha2": "94ffdbe05f2ffbfcf22fbe27ecc4e0868f8c4d78"
}
,{
"testCaseDescription": "javascript-function-call-delete-replacement-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Deleted the 'someFunction(arg1, \"arg3\")' function call"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
27
]
}
},
"summary": "Deleted the 'someFunction(arg1, \"arg2\")' function call"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
27
]
}
},
"summary": "Added the 'someFunction(arg1, \"arg3\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"sha1": "94ffdbe05f2ffbfcf22fbe27ecc4e0868f8c4d78",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a6bffd39a8aea41980a82abb99d5b2249b48efb5"
}
,{
"testCaseDescription": "javascript-function-call-delete-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Deleted the 'someFunction(arg1, \"arg2\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"sha1": "a6bffd39a8aea41980a82abb99d5b2249b48efb5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "494300f82f29240deac2b8283d6f5d940d9edf50"
}
,{
"testCaseDescription": "javascript-function-call-delete-rest-test",
"expectedResult": {
"changes": {
"function-call.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Deleted the 'someFunction(arg1, \"arg3\")' function call"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.js"
],
"sha1": "494300f82f29240deac2b8283d6f5d940d9edf50",
"gitDir": "test/corpus/repos/javascript",
"sha2": "894f34802b17ff5a07550b2d56a4401c18fbd3b7"
}]