[{ "testCaseDescription": "go-assignment-statements-setup-test", "expectedResult": { "changes": { "assignment-statements.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Added the 'main' module" } ] }, "errors": {} }, "filePaths": [ "assignment-statements.go" ], "patch": [ "diff --git a/assignment-statements.go b/assignment-statements.go", "index e69de29..7905807 100644", "--- a/assignment-statements.go", "+++ b/assignment-statements.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "efd0c3cb1a849ee204223f8b2e77cc03fabdd406..743091a8fdbc838ff81ce271132dda84db44ecab" } ,{ "testCaseDescription": "go-assignment-statements-insert-test", "expectedResult": { "changes": { "assignment-statements.go": [ { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 6 ] } }, "summary": "Added the 'a' var assignment in the main function of the 'main' module" }, { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 13 ] } }, "summary": "Added the 'b' var assignment in the main function of the 'main' module" }, { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 13 ] } }, "summary": "Added the 'c' var assignment in the main function of the 'main' module" }, { "span": { "insert": { "start": [ 6, 1 ], "end": [ 6, 7 ] } }, "summary": "Added the 'd' var assignment in the main function of the 'main' module" }, { "span": { "insert": { "start": [ 7, 1 ], "end": [ 7, 7 ] } }, "summary": "Added the 'e' var assignment in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "assignment-statements.go" ], "patch": [ "diff --git a/assignment-statements.go b/assignment-statements.go", "index 7905807..072782b 100644", "--- a/assignment-statements.go", "+++ b/assignment-statements.go", "@@ -1,5 +1,8 @@", " package main", " ", " func main() {", "-", "+a = 1", "+b, c += 2, 3", "+d *= 3", "+e += 1", " }" ], "gitDir": "test/corpus/repos/go", "shas": "743091a8fdbc838ff81ce271132dda84db44ecab..c392434eb0cc3a33cce287ced505b978238b07a1" } ,{ "testCaseDescription": "go-assignment-statements-replacement-test", "expectedResult": { "changes": { "assignment-statements.go": [ { "span": { "replace": [ { "start": [ 4, 1 ], "end": [ 4, 2 ] }, { "start": [ 4, 1 ], "end": [ 4, 2 ] } ] }, "summary": "Replaced the 'a' identifier with the 'x' identifier in the x var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 5, 1 ], "end": [ 5, 2 ] }, { "start": [ 5, 1 ], "end": [ 5, 2 ] } ] }, "summary": "Replaced the 'b' identifier with the 'y' identifier in the y var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 6, 1 ], "end": [ 6, 2 ] }, { "start": [ 6, 1 ], "end": [ 6, 2 ] } ] }, "summary": "Replaced the 'd' identifier with the 'z' identifier in the z var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 7, 1 ], "end": [ 7, 2 ] }, { "start": [ 7, 1 ], "end": [ 7, 2 ] } ] }, "summary": "Replaced the 'e' identifier with the 'h' identifier in the h var assignment of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "assignment-statements.go" ], "patch": [ "diff --git a/assignment-statements.go b/assignment-statements.go", "index 072782b..2e6b444 100644", "--- a/assignment-statements.go", "+++ b/assignment-statements.go", "@@ -1,8 +1,8 @@", " package main", " ", " func main() {", "-a = 1", "-b, c += 2, 3", "-d *= 3", "-e += 1", "+x = 1", "+y, c += 2, 3", "+z *= 3", "+h += 1", " }" ], "gitDir": "test/corpus/repos/go", "shas": "c392434eb0cc3a33cce287ced505b978238b07a1..d393634ed2d19d522e50e052aa45fa6583ed713c" } ,{ "testCaseDescription": "go-assignment-statements-delete-replacement-test", "expectedResult": { "changes": { "assignment-statements.go": [ { "span": { "replace": [ { "start": [ 4, 1 ], "end": [ 4, 2 ] }, { "start": [ 4, 1 ], "end": [ 4, 2 ] } ] }, "summary": "Replaced the 'x' identifier with the 'a' identifier in the a var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 5, 1 ], "end": [ 5, 2 ] }, { "start": [ 5, 1 ], "end": [ 5, 2 ] } ] }, "summary": "Replaced the 'y' identifier with the 'b' identifier in the b var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 6, 1 ], "end": [ 6, 2 ] }, { "start": [ 6, 1 ], "end": [ 6, 2 ] } ] }, "summary": "Replaced the 'z' identifier with the 'd' identifier in the d var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 7, 1 ], "end": [ 7, 2 ] }, { "start": [ 7, 1 ], "end": [ 7, 2 ] } ] }, "summary": "Replaced the 'h' identifier with the 'e' identifier in the e var assignment of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "assignment-statements.go" ], "patch": [ "diff --git a/assignment-statements.go b/assignment-statements.go", "index 2e6b444..072782b 100644", "--- a/assignment-statements.go", "+++ b/assignment-statements.go", "@@ -1,8 +1,8 @@", " package main", " ", " func main() {", "-x = 1", "-y, c += 2, 3", "-z *= 3", "-h += 1", "+a = 1", "+b, c += 2, 3", "+d *= 3", "+e += 1", " }" ], "gitDir": "test/corpus/repos/go", "shas": "d393634ed2d19d522e50e052aa45fa6583ed713c..70a21ee21e40b085c07e62e8472d2928d6c1ccc9" } ,{ "testCaseDescription": "go-assignment-statements-delete-insert-test", "expectedResult": { "changes": { "assignment-statements.go": [ { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 6 ] } }, "summary": "Deleted the 'a' var assignment in the main function of the 'main' module" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 13 ] } }, "summary": "Deleted the 'b' var assignment in the main function of the 'main' module" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 13 ] } }, "summary": "Deleted the 'c' var assignment in the main function of the 'main' module" }, { "span": { "delete": { "start": [ 6, 1 ], "end": [ 6, 7 ] } }, "summary": "Deleted the 'd' var assignment in the main function of the 'main' module" }, { "span": { "delete": { "start": [ 7, 1 ], "end": [ 7, 7 ] } }, "summary": "Deleted the 'e' var assignment in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "assignment-statements.go" ], "patch": [ "diff --git a/assignment-statements.go b/assignment-statements.go", "index 072782b..7905807 100644", "--- a/assignment-statements.go", "+++ b/assignment-statements.go", "@@ -1,8 +1,5 @@", " package main", " ", " func main() {", "-a = 1", "-b, c += 2, 3", "-d *= 3", "-e += 1", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "70a21ee21e40b085c07e62e8472d2928d6c1ccc9..ae7cc73c3d003fa5e572468f0848343c581c371e" } ,{ "testCaseDescription": "go-assignment-statements-teardown-test", "expectedResult": { "changes": { "assignment-statements.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Deleted the 'main' module" } ] }, "errors": {} }, "filePaths": [ "assignment-statements.go" ], "patch": [ "diff --git a/assignment-statements.go b/assignment-statements.go", "index 7905807..e69de29 100644", "--- a/assignment-statements.go", "+++ b/assignment-statements.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "ae7cc73c3d003fa5e572468f0848343c581c371e..dfd75d49293a0503061ad3227ada1bffe53a1801" }]