1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/function-call.json
2016-10-11 16:18:26 -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": "4b213c3b88b5e8aace51dfa0379aaa8de01536b8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "77cb0c7af7488197be59308f1296a909bd4dc5b6"
}
,{
"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": "77cb0c7af7488197be59308f1296a909bd4dc5b6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1b4585f4d837d2412aa2349b729616df4be4dfc3"
}
,{
"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": "1b4585f4d837d2412aa2349b729616df4be4dfc3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ff9cd97499db7659134fc3f9c3eede631ffcf43b"
}
,{
"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": "ff9cd97499db7659134fc3f9c3eede631ffcf43b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "40ae68e40bb296a0fed10ad139a32c0bdd48c91d"
}
,{
"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": "40ae68e40bb296a0fed10ad139a32c0bdd48c91d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "97b784a48b8ba2ab17d9fb5e690fdd5e27995053"
}
,{
"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": "97b784a48b8ba2ab17d9fb5e690fdd5e27995053",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4ab24690a7b34511675eb6c179c5b85a382c7952"
}
,{
"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": "4ab24690a7b34511675eb6c179c5b85a382c7952",
"gitDir": "test/corpus/repos/javascript",
"sha2": "35a769b31d29eac1dc0307402e6e2698e71177ac"
}]