1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00
semantic/test/corpus/diff-summaries/javascript/function-call-args.json

557 lines
19 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-function-call-args-insert-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
77
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'someFunction(1, \"string\", …, true)' function call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "f280453bb32a391891c7d93eaa0edb1747f29819",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "54acb9d9fd2d16e5e46a8e28fb1fae8578d97182"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-call-args-replacement-insert-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
83
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'someFunction(1, \"otherString\", …, false)' function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
77
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'someFunction(1, \"string\", …, true)' function call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "54acb9d9fd2d16e5e46a8e28fb1fae8578d97182",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "80ef06ef24cf365a7dad14c0b783dc3376895e38"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-call-args-delete-insert-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
17
],
"end": [
1,
30
]
},
{
"start": [
1,
17
],
"end": [
1,
25
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the \"otherString\" string with the \"string\" string in the someFunction(1, \"string\", …, true) function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
41
],
"end": [
1,
42
]
},
{
"start": [
1,
36
],
"end": [
1,
37
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'b' identifier with the 'a' identifier in the someFunction(1, \"string\", …, true) function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
43
],
"end": [
1,
44
]
},
{
"start": [
1,
38
],
"end": [
1,
39
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'c' identifier with the 'b' identifier in the someFunction(1, \"string\", …, true) function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
60
],
"end": [
1,
61
]
},
{
"start": [
1,
55
],
"end": [
1,
56
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'b' identifier with the 'a' identifier in the console.log(a) method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
71
],
"end": [
1,
72
]
},
{
"start": [
1,
66
],
"end": [
1,
67
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'c' identifier with the 'b' identifier in the someFunction(1, \"string\", …, true) function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
77
],
"end": [
1,
82
]
},
{
"start": [
1,
72
],
"end": [
1,
76
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced 'false' with 'true' in the someFunction(1, \"string\", …, true) function call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "80ef06ef24cf365a7dad14c0b783dc3376895e38",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "3b875163246b6d3c7aabacc0804ccb826854212c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-call-args-replacement-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
17
],
"end": [
1,
25
]
},
{
"start": [
1,
17
],
"end": [
1,
30
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the \"string\" string with the \"otherString\" string in the someFunction(1, \"otherString\", …, false) function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
36
],
"end": [
1,
37
]
},
{
"start": [
1,
41
],
"end": [
1,
42
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'a' identifier with the 'b' identifier in the someFunction(1, \"otherString\", …, false) function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
38
],
"end": [
1,
39
]
},
{
"start": [
1,
43
],
"end": [
1,
44
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'b' identifier with the 'c' identifier in the someFunction(1, \"otherString\", …, false) function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
55
],
"end": [
1,
56
]
},
{
"start": [
1,
60
],
"end": [
1,
61
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'a' identifier with the 'b' identifier in the console.log(b) method call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
66
],
"end": [
1,
67
]
},
{
"start": [
1,
71
],
"end": [
1,
72
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'b' identifier with the 'c' identifier in the someFunction(1, \"otherString\", …, false) function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
72
],
"end": [
1,
76
]
},
{
"start": [
1,
77
],
"end": [
1,
82
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced 'true' with 'false' in the someFunction(1, \"otherString\", …, false) function call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "3b875163246b6d3c7aabacc0804ccb826854212c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "d3c0d8228a46c470276ad37343c43ae40665eccb"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-call-args-delete-replacement-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
83
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'someFunction(1, \"otherString\", …, false)' function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
77
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'someFunction(1, \"string\", …, true)' function call"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
83
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'someFunction(1, \"otherString\", …, false)' function call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "d3c0d8228a46c470276ad37343c43ae40665eccb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "8cdf115a1bd074b33eb6db540a9749227a7ff523"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-call-args-delete-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
77
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'someFunction(1, \"string\", …, true)' function call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "8cdf115a1bd074b33eb6db540a9749227a7ff523",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "dcaa52d370076b0ccc3f741ef37bae9011bb48c1"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-call-args-delete-rest-test",
"expectedResult": {
"changes": {
"function-call-args.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
83
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'someFunction(1, \"otherString\", …, false)' function call"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function-call-args.js"
],
2016-10-14 21:40:07 +03:00
"sha1": "dcaa52d370076b0ccc3f741ef37bae9011bb48c1",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "ec7e7ab3dbd5fa6f9f2a5c7d30b0a6be0c45ce57"
2016-10-11 18:12:20 +03:00
}]