mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +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": "1c26ddab5fba493104cdbeecfad13b8a056a33ae",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "da7ac6c46b4f7758257fa14eae2781012ee2646b"
|
|
}
|
|
,{
|
|
"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": "da7ac6c46b4f7758257fa14eae2781012ee2646b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8e183a32085b1a2813d196ad149ff5029686a556"
|
|
}
|
|
,{
|
|
"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": "8e183a32085b1a2813d196ad149ff5029686a556",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "907ff75a064f38263f586bc88f941350344e81a0"
|
|
}
|
|
,{
|
|
"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": "907ff75a064f38263f586bc88f941350344e81a0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "754ebbed9937a29eaeba86f2abb3782d2313bb20"
|
|
}
|
|
,{
|
|
"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": "754ebbed9937a29eaeba86f2abb3782d2313bb20",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1c531b12c0a68a71d780d4e7827be4b03198a818"
|
|
}
|
|
,{
|
|
"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": "1c531b12c0a68a71d780d4e7827be4b03198a818",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "745e324b6bb74d8d058796a6c3c5b74a5bbb0b98"
|
|
}
|
|
,{
|
|
"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": "745e324b6bb74d8d058796a6c3c5b74a5bbb0b98",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "79d513015fcca66bb73501ffae783b1c226934a8"
|
|
}]
|