1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/function-call.json
2016-11-01 10:03:25 -05: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": "1a9472e94c365639f5f2b5c519a06c2daf17c630",
"gitDir": "test/corpus/repos/javascript",
"sha2": "aea81a7aab8e43746db84c917498d022cad8f88b"
}
,{
"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": "aea81a7aab8e43746db84c917498d022cad8f88b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a665ddd2de9f0b3f6cb01dac3885746472685a02"
}
,{
"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": "a665ddd2de9f0b3f6cb01dac3885746472685a02",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3c91447c23d8af65a9d5b3fdad3d2223dc9c9b8c"
}
,{
"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": "3c91447c23d8af65a9d5b3fdad3d2223dc9c9b8c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "92454603aeea12b9db63daaf4ff448a3ad866fc6"
}
,{
"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": "92454603aeea12b9db63daaf4ff448a3ad866fc6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b5ba13c145b484c83750280711b5a8dbf9339b2a"
}
,{
"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": "b5ba13c145b484c83750280711b5a8dbf9339b2a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "200d34900ee17186bda5fbf861a3960c8e0053e4"
}
,{
"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": "200d34900ee17186bda5fbf861a3960c8e0053e4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3a19dee8da1e0544c2cf975d850a6ce707912b35"
}]