mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
309 lines
10 KiB
JSON
309 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-function-call-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(arg1, \"arg2\")' function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call.js"
|
|
],
|
|
"sha1": "69d03ecd07566e6fa325c378815462768d32a996",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5c33dfd9f5a31344ff92b13b536fab395123631f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(arg1, \"arg3\")' function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
2,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(arg1, \"arg2\")' function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call.js"
|
|
],
|
|
"sha1": "5c33dfd9f5a31344ff92b13b536fab395123631f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9b2feff82b5b2dcd66fe5eaf3370f60d301ae00f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"arg3\" string with the \"arg2\" string in the someFunction(arg1, \"arg2\") function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call.js"
|
|
],
|
|
"sha1": "9b2feff82b5b2dcd66fe5eaf3370f60d301ae00f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "01de50c44273a20e735f5e0befe65f6373aa2edb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"arg2\" string with the \"arg3\" string in the someFunction(arg1, \"arg3\") function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call.js"
|
|
],
|
|
"sha1": "01de50c44273a20e735f5e0befe65f6373aa2edb",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bcb608a5b2e2c4e887e85005f873cc884aa8aee9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(arg1, \"arg3\")' function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
2,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(arg1, \"arg2\")' function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
2,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(arg1, \"arg3\")' function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call.js"
|
|
],
|
|
"sha1": "bcb608a5b2e2c4e887e85005f873cc884aa8aee9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a8fadba8690bd1195a9d0868aa57bd19e2ee7af6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(arg1, \"arg2\")' function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call.js"
|
|
],
|
|
"sha1": "a8fadba8690bd1195a9d0868aa57bd19e2ee7af6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "059865b81c068f73f9ccdc584d6e9eba10a4e3c7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function-call.js",
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(arg1, \"arg3\")' function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call.js"
|
|
],
|
|
"sha1": "059865b81c068f73f9ccdc584d6e9eba10a4e3c7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "24037753ea53b15094b5e71eef37b694a5f001fe"
|
|
}]
|