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 18:02:14 -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": "a5238394020bfb43417e960688ccb61c97dd27a4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b2518532d284450894a4c02f9e035485f38c2060"
}
,{
"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": "b2518532d284450894a4c02f9e035485f38c2060",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ee34446d4e4c90a2e53e558483c0d6b39954816b"
}
,{
"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": "ee34446d4e4c90a2e53e558483c0d6b39954816b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "513d4b6069b8404b6812fefd4b1fe50a359e2a19"
}
,{
"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": "513d4b6069b8404b6812fefd4b1fe50a359e2a19",
"gitDir": "test/corpus/repos/javascript",
"sha2": "24cfea1fcf29c744bcdee7133960304d2f6600b1"
}
,{
"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": "24cfea1fcf29c744bcdee7133960304d2f6600b1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9fa45abb039a909f3772ae3692e883c771a9c2c8"
}
,{
"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": "9fa45abb039a909f3772ae3692e883c771a9c2c8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "653c6afa58dbcb99cf2461a794484c3bec51b4f2"
}
,{
"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": "653c6afa58dbcb99cf2461a794484c3bec51b4f2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "be23fb7a4bce629a18cc514f4d52b29b54df51de"
}]