mirror of
https://github.com/github/semantic.git
synced 2024-12-20 21:31:48 +03:00
557 lines
19 KiB
JSON
557 lines
19 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-function-call-args-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
77
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(1, \"string\", …, true)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "f280453bb32a391891c7d93eaa0edb1747f29819",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "54acb9d9fd2d16e5e46a8e28fb1fae8578d97182"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
83
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(1, \"otherString\", …, false)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
77
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(1, \"string\", …, true)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "54acb9d9fd2d16e5e46a8e28fb1fae8578d97182",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "80ef06ef24cf365a7dad14c0b783dc3376895e38"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"end": [
|
|
1,
|
|
30
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"otherString\" string with the \"string\" string in the someFunction(1, \"string\", …, true) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
41
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
36
|
|
],
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier in the someFunction(1, \"string\", …, true) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
43
|
|
],
|
|
"end": [
|
|
1,
|
|
44
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
38
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'c' identifier with the 'b' identifier in the someFunction(1, \"string\", …, true) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
60
|
|
],
|
|
"end": [
|
|
1,
|
|
61
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
55
|
|
],
|
|
"end": [
|
|
1,
|
|
56
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier in the console.log(a) method call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
71
|
|
],
|
|
"end": [
|
|
1,
|
|
72
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
66
|
|
],
|
|
"end": [
|
|
1,
|
|
67
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'c' identifier with the 'b' identifier in the someFunction(1, \"string\", …, true) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
77
|
|
],
|
|
"end": [
|
|
1,
|
|
82
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
72
|
|
],
|
|
"end": [
|
|
1,
|
|
76
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced 'false' with 'true' in the someFunction(1, \"string\", …, true) function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "80ef06ef24cf365a7dad14c0b783dc3376895e38",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3b875163246b6d3c7aabacc0804ccb826854212c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
17
|
|
],
|
|
"end": [
|
|
1,
|
|
30
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the \"string\" string with the \"otherString\" string in the someFunction(1, \"otherString\", …, false) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
36
|
|
],
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
41
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier in the someFunction(1, \"otherString\", …, false) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
38
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
43
|
|
],
|
|
"end": [
|
|
1,
|
|
44
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'c' identifier in the someFunction(1, \"otherString\", …, false) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
55
|
|
],
|
|
"end": [
|
|
1,
|
|
56
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
60
|
|
],
|
|
"end": [
|
|
1,
|
|
61
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier in the console.log(b) method call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
66
|
|
],
|
|
"end": [
|
|
1,
|
|
67
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
71
|
|
],
|
|
"end": [
|
|
1,
|
|
72
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'c' identifier in the someFunction(1, \"otherString\", …, false) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
72
|
|
],
|
|
"end": [
|
|
1,
|
|
76
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
77
|
|
],
|
|
"end": [
|
|
1,
|
|
82
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced 'true' with 'false' in the someFunction(1, \"otherString\", …, false) function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "3b875163246b6d3c7aabacc0804ccb826854212c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d3c0d8228a46c470276ad37343c43ae40665eccb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
83
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(1, \"otherString\", …, false)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
77
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(1, \"string\", …, true)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
83
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'someFunction(1, \"otherString\", …, false)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "d3c0d8228a46c470276ad37343c43ae40665eccb",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8cdf115a1bd074b33eb6db540a9749227a7ff523"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
77
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(1, \"string\", …, true)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "8cdf115a1bd074b33eb6db540a9749227a7ff523",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "dcaa52d370076b0ccc3f741ef37bae9011bb48c1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-call-args-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-call-args.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
83
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'someFunction(1, \"otherString\", …, false)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-call-args.js"
|
|
],
|
|
"sha1": "dcaa52d370076b0ccc3f741ef37bae9011bb48c1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ec7e7ab3dbd5fa6f9f2a5c7d30b0a6be0c45ce57"
|
|
}]
|