[{ "testCaseDescription": "go-call-expressions-setup-test", "expectedResult": { "changes": { "call-expressions.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 13 ] } }, "summary": "Added the 'main' module" }, { "span": { "insert": { "start": [ 3, 1 ], "end": [ 5, 2 ] } }, "summary": "Added the 'main' function" } ] }, "errors": {} }, "filePaths": [ "call-expressions.go" ], "patch": [ "diff --git a/call-expressions.go b/call-expressions.go", "index e69de29b..79058077 100644", "--- a/call-expressions.go", "+++ b/call-expressions.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "7e0f9dd5fa5420c61c8fff7cc5794bc367fc399a..c3f909be261c136e0915e5a342bfd4f6b668cadb" } ,{ "testCaseDescription": "go-call-expressions-insert-test", "expectedResult": { "changes": { "call-expressions.go": [ { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 11 ] } }, "summary": "Added the 'x(b, c)' function call in the main function" }, { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 9 ] } }, "summary": "Added the 'y(b, c)' function call in the main function" }, { "span": { "insert": { "start": [ 6, 1 ], "end": [ 6, 11 ] } }, "summary": "Added the 'z(b, c)' function call in the main function" } ] }, "errors": {} }, "filePaths": [ "call-expressions.go" ], "patch": [ "diff --git a/call-expressions.go b/call-expressions.go", "index 79058077..72918e59 100644", "--- a/call-expressions.go", "+++ b/call-expressions.go", "@@ -1,5 +1,7 @@", " package main", " ", " func main() {", "-", "+x(b, c...)", "+y(b, c,)", "+z(b,c...,)", " }" ], "gitDir": "test/corpus/repos/go", "shas": "c3f909be261c136e0915e5a342bfd4f6b668cadb..97b26c2e02b41c6bba2bcb67b05e37334bc3ac49" } ,{ "testCaseDescription": "go-call-expressions-replacement-test", "expectedResult": { "changes": { "call-expressions.go": [ { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 11 ] } }, "summary": "Added the 'a(b, c)' function call in the main function" }, { "span": { "replace": [ { "start": [ 4, 1 ], "end": [ 4, 2 ] }, { "start": [ 5, 1 ], "end": [ 5, 2 ] } ] }, "summary": "Replaced the 'x' identifier with the 'b' identifier in the b(b, c) function call of the 'main' function" }, { "span": { "insert": { "start": [ 6, 1 ], "end": [ 6, 11 ] } }, "summary": "Added the 'c(b, c)' function call in the main function" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 9 ] } }, "summary": "Deleted the 'y(b, c)' function call in the main function" }, { "span": { "delete": { "start": [ 6, 1 ], "end": [ 6, 11 ] } }, "summary": "Deleted the 'z(b, c)' function call in the main function" } ] }, "errors": {} }, "filePaths": [ "call-expressions.go" ], "patch": [ "diff --git a/call-expressions.go b/call-expressions.go", "index 72918e59..2d5e765c 100644", "--- a/call-expressions.go", "+++ b/call-expressions.go", "@@ -1,7 +1,7 @@", " package main", " ", " func main() {", "-x(b, c...)", "-y(b, c,)", "-z(b,c...,)", "+a(b, c...)", "+b(b, c,)", "+c(b,c...,)", " }" ], "gitDir": "test/corpus/repos/go", "shas": "97b26c2e02b41c6bba2bcb67b05e37334bc3ac49..091fcfea40dcf102c35dbc7cc5cdaf724fa480f2" } ,{ "testCaseDescription": "go-call-expressions-delete-replacement-test", "expectedResult": { "changes": { "call-expressions.go": [ { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 11 ] } }, "summary": "Added the 'x(b, c)' function call in the main function" }, { "span": { "replace": [ { "start": [ 4, 1 ], "end": [ 4, 2 ] }, { "start": [ 5, 1 ], "end": [ 5, 2 ] } ] }, "summary": "Replaced the 'a' identifier with the 'y' identifier in the y(b, c) function call of the 'main' function" }, { "span": { "insert": { "start": [ 6, 1 ], "end": [ 6, 11 ] } }, "summary": "Added the 'z(b, c)' function call in the main function" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 9 ] } }, "summary": "Deleted the 'b(b, c)' function call in the main function" }, { "span": { "delete": { "start": [ 6, 1 ], "end": [ 6, 11 ] } }, "summary": "Deleted the 'c(b, c)' function call in the main function" } ] }, "errors": {} }, "filePaths": [ "call-expressions.go" ], "patch": [ "diff --git a/call-expressions.go b/call-expressions.go", "index 2d5e765c..72918e59 100644", "--- a/call-expressions.go", "+++ b/call-expressions.go", "@@ -1,7 +1,7 @@", " package main", " ", " func main() {", "-a(b, c...)", "-b(b, c,)", "-c(b,c...,)", "+x(b, c...)", "+y(b, c,)", "+z(b,c...,)", " }" ], "gitDir": "test/corpus/repos/go", "shas": "091fcfea40dcf102c35dbc7cc5cdaf724fa480f2..301261f56ae1a05abb37773ee6d16664f89c6966" } ,{ "testCaseDescription": "go-call-expressions-delete-insert-test", "expectedResult": { "changes": { "call-expressions.go": [ { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 11 ] } }, "summary": "Deleted the 'x(b, c)' function call in the main function" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 9 ] } }, "summary": "Deleted the 'y(b, c)' function call in the main function" }, { "span": { "delete": { "start": [ 6, 1 ], "end": [ 6, 11 ] } }, "summary": "Deleted the 'z(b, c)' function call in the main function" } ] }, "errors": {} }, "filePaths": [ "call-expressions.go" ], "patch": [ "diff --git a/call-expressions.go b/call-expressions.go", "index 72918e59..79058077 100644", "--- a/call-expressions.go", "+++ b/call-expressions.go", "@@ -1,7 +1,5 @@", " package main", " ", " func main() {", "-x(b, c...)", "-y(b, c,)", "-z(b,c...,)", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "301261f56ae1a05abb37773ee6d16664f89c6966..25be6adf45f081a83897de95eed8980c88da0e91" } ,{ "testCaseDescription": "go-call-expressions-teardown-test", "expectedResult": { "changes": { "call-expressions.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 13 ] } }, "summary": "Deleted the 'main' module" }, { "span": { "delete": { "start": [ 3, 1 ], "end": [ 5, 2 ] } }, "summary": "Deleted the 'main' function" } ] }, "errors": {} }, "filePaths": [ "call-expressions.go" ], "patch": [ "diff --git a/call-expressions.go b/call-expressions.go", "index 79058077..e69de29b 100644", "--- a/call-expressions.go", "+++ b/call-expressions.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "25be6adf45f081a83897de95eed8980c88da0e91..323f9c71a4ecee57b2ce6e74c784ed923b7d18dc" }]