1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/corpus/diff-summaries/javascript/function-call-args.json

609 lines
22 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
],
"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"
],
2016-10-11 18:54:47 +03:00
"sha1": "c64bd8c8fddd5dfddd8b66e5da73f44196a2f949",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "28d158494212d7e7a8d669cfcf00cb94c469fd8a"
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
],
"name": "function-call-args.js",
"end": [
1,
83
]
}
},
"summary": "Added the 'someFunction(1, \"otherString\", …, false)' function call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"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"
],
2016-10-11 18:54:47 +03:00
"sha1": "28d158494212d7e7a8d669cfcf00cb94c469fd8a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "fd6089792e1161e4e8250c20c114f484007c2198"
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
],
"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": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"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": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"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": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"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": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"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": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"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"
],
2016-10-11 18:54:47 +03:00
"sha1": "fd6089792e1161e4e8250c20c114f484007c2198",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "692db1304b7df4f8705b40d6c6db5a223ae748c1"
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
],
"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": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"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": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"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": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"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": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"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": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"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"
],
2016-10-11 18:54:47 +03:00
"sha1": "692db1304b7df4f8705b40d6c6db5a223ae748c1",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "292a4c61772ea003e3c6871c38b32609872890a6"
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
],
"name": "function-call-args.js",
"end": [
1,
83
]
}
},
"summary": "Deleted the 'someFunction(1, \"otherString\", …, false)' function call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "function-call-args.js",
"end": [
2,
77
]
}
},
"summary": "Deleted the 'someFunction(1, \"string\", …, true)' function call",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"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"
],
2016-10-11 18:54:47 +03:00
"sha1": "292a4c61772ea003e3c6871c38b32609872890a6",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "83b196b17789937e6cd4cabc48a69f3b695da404"
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
],
"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"
],
2016-10-11 18:54:47 +03:00
"sha1": "83b196b17789937e6cd4cabc48a69f3b695da404",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "5152aeeee214a3ccf900f0ac3db753f8d515e6eb"
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
],
"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"
],
2016-10-11 18:54:47 +03:00
"sha1": "5152aeeee214a3ccf900f0ac3db753f8d515e6eb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 18:54:47 +03:00
"sha2": "2ad39701c647bc8063509309d3cc04d0c6adf0e8"
2016-10-11 18:12:20 +03:00
}]