mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
609 lines
22 KiB
JSON
609 lines
22 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-function-call-args-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
77
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(1, \"string\", …, true)' function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "c64bd8c8fddd5dfddd8b66e5da73f44196a2f949",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "28d158494212d7e7a8d669cfcf00cb94c469fd8a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
83
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(1, \"otherString\", …, false)' function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
2,
|
|
77
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(1, \"string\", …, true)' function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "28d158494212d7e7a8d669cfcf00cb94c469fd8a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fd6089792e1161e4e8250c20c114f484007c2198"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"otherString\" string with the \"string\" string in the someFunction(1, \"string\", …, true) function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
41
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
36
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier in the someFunction(1, \"string\", …, true) function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
43
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
44
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
38
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'c' identifier with the 'b' identifier in the someFunction(1, \"string\", …, true) function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
60
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
61
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
55
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
56
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier in the console.log(a) method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
71
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
72
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
66
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
67
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'c' identifier with the 'b' identifier in the someFunction(1, \"string\", …, true) function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
77
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
82
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
72
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
76
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced 'false' with 'true' in the someFunction(1, \"string\", …, true) function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "fd6089792e1161e4e8250c20c114f484007c2198",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "692db1304b7df4f8705b40d6c6db5a223ae748c1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
30
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"string\" string with the \"otherString\" string in the someFunction(1, \"otherString\", …, false) function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
36
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
41
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier in the someFunction(1, \"otherString\", …, false) function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
38
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
43
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
44
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'c' identifier in the someFunction(1, \"otherString\", …, false) function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
55
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
56
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
60
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
61
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier in the console.log(b) method call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
66
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
67
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
71
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
72
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'c' identifier in the someFunction(1, \"otherString\", …, false) function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
72
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
76
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
77
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
82
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced 'true' with 'false' in the someFunction(1, \"otherString\", …, false) function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "692db1304b7df4f8705b40d6c6db5a223ae748c1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "292a4c61772ea003e3c6871c38b32609872890a6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
83
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(1, \"otherString\", …, false)' function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
2,
|
|
77
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(1, \"string\", …, true)' function call",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
2,
|
|
83
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(1, \"otherString\", …, false)' function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "292a4c61772ea003e3c6871c38b32609872890a6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "83b196b17789937e6cd4cabc48a69f3b695da404"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
77
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(1, \"string\", …, true)' function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "83b196b17789937e6cd4cabc48a69f3b695da404",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5152aeeee214a3ccf900f0ac3db753f8d515e6eb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function-call-args.js",
|
|
"end": [
|
|
1,
|
|
83
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(1, \"otherString\", …, false)' function call",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "5152aeeee214a3ccf900f0ac3db753f8d515e6eb",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2ad39701c647bc8063509309d3cc04d0c6adf0e8"
|
|
}]
|