mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +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": "6087206d2569a100e711f522134188e6f4477aec",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2a33781a84e417f58c35f1842a5756a306d96e16"
|
|
}
|
|
,{
|
|
"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": "2a33781a84e417f58c35f1842a5756a306d96e16",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "00cbc206ce3e849a4f008481a388fe2cd16cdab0"
|
|
}
|
|
,{
|
|
"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": "00cbc206ce3e849a4f008481a388fe2cd16cdab0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fe0562a6af2ef816cd033495c6dab8a098e9abd1"
|
|
}
|
|
,{
|
|
"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": "fe0562a6af2ef816cd033495c6dab8a098e9abd1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3ffd66b0af62a4993f1ec9cec204e476a4b8f571"
|
|
}
|
|
,{
|
|
"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": "3ffd66b0af62a4993f1ec9cec204e476a4b8f571",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ee3a4e126eb1e8e72d6066c91087fb820fe81f81"
|
|
}
|
|
,{
|
|
"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": "ee3a4e126eb1e8e72d6066c91087fb820fe81f81",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f68da3ce3086b28dbf986f818ff4e85b20f72a1c"
|
|
}
|
|
,{
|
|
"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": "f68da3ce3086b28dbf986f818ff4e85b20f72a1c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3bd8ebcbe86dd538120a517b6420d768e8ce2b4c"
|
|
}]
|