[{ "testCaseDescription": "go-selector-expressions-setup-test", "expectedResult": { "changes": { "selector-expressions.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Added the 'main' module" } ] }, "errors": {} }, "filePaths": [ "selector-expressions.go" ], "patch": [ "diff --git a/selector-expressions.go b/selector-expressions.go", "index e69de29..7905807 100644", "--- a/selector-expressions.go", "+++ b/selector-expressions.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "055da5b57743a5355719d0c0fbf8e2db94f5ac91..f26cf93921a7cc9f42d5a5d5f8593c9229721fbf" } ,{ "testCaseDescription": "go-selector-expressions-insert-test", "expectedResult": { "changes": { "selector-expressions.go": [ { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 8 ] } }, "summary": "Added the 'a[b][c]()' function call in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "selector-expressions.go" ], "patch": [ "diff --git a/selector-expressions.go b/selector-expressions.go", "index 7905807..8b4c745 100644", "--- a/selector-expressions.go", "+++ b/selector-expressions.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-", "+a.b.c()", " }" ], "gitDir": "test/corpus/repos/go", "shas": "f26cf93921a7cc9f42d5a5d5f8593c9229721fbf..2cc0e24c591429cda484b059dc0f08a379b78b09" } ,{ "testCaseDescription": "go-selector-expressions-replacement-test", "expectedResult": { "changes": { "selector-expressions.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[y] subscript access of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 3 ], "end": [ 4, 4 ] }, { "start": [ 4, 3 ], "end": [ 4, 4 ] } ] }, "summary": "Replaced the 'b' identifier with the 'y' identifier in the x[y] subscript access of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 5 ], "end": [ 4, 6 ] }, { "start": [ 4, 5 ], "end": [ 4, 6 ] } ] }, "summary": "Replaced the 'c' identifier with the 'z' identifier in the x[y][z] subscript access of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "selector-expressions.go" ], "patch": [ "diff --git a/selector-expressions.go b/selector-expressions.go", "index 8b4c745..0e519e3 100644", "--- a/selector-expressions.go", "+++ b/selector-expressions.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-a.b.c()", "+x.y.z()", " }" ], "gitDir": "test/corpus/repos/go", "shas": "2cc0e24c591429cda484b059dc0f08a379b78b09..e9b9881759f4015442531886f2a847f8e59b1851" } ,{ "testCaseDescription": "go-selector-expressions-delete-replacement-test", "expectedResult": { "changes": { "selector-expressions.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[b] subscript access of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 3 ], "end": [ 4, 4 ] }, { "start": [ 4, 3 ], "end": [ 4, 4 ] } ] }, "summary": "Replaced the 'y' identifier with the 'b' identifier in the a[b] subscript access of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 5 ], "end": [ 4, 6 ] }, { "start": [ 4, 5 ], "end": [ 4, 6 ] } ] }, "summary": "Replaced the 'z' identifier with the 'c' identifier in the a[b][c] subscript access of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "selector-expressions.go" ], "patch": [ "diff --git a/selector-expressions.go b/selector-expressions.go", "index 0e519e3..8b4c745 100644", "--- a/selector-expressions.go", "+++ b/selector-expressions.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-x.y.z()", "+a.b.c()", " }" ], "gitDir": "test/corpus/repos/go", "shas": "e9b9881759f4015442531886f2a847f8e59b1851..a0f7ae50f3da0279dea12062e3f7b2a0514c3d5e" } ,{ "testCaseDescription": "go-selector-expressions-delete-insert-test", "expectedResult": { "changes": { "selector-expressions.go": [ { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 8 ] } }, "summary": "Deleted the 'a[b][c]()' function call in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "selector-expressions.go" ], "patch": [ "diff --git a/selector-expressions.go b/selector-expressions.go", "index 8b4c745..7905807 100644", "--- a/selector-expressions.go", "+++ b/selector-expressions.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-a.b.c()", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "a0f7ae50f3da0279dea12062e3f7b2a0514c3d5e..16a9b4f62a29df6e8977c8767ed05f3939bd361d" } ,{ "testCaseDescription": "go-selector-expressions-teardown-test", "expectedResult": { "changes": { "selector-expressions.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Deleted the 'main' module" } ] }, "errors": {} }, "filePaths": [ "selector-expressions.go" ], "patch": [ "diff --git a/selector-expressions.go b/selector-expressions.go", "index 7905807..e69de29 100644", "--- a/selector-expressions.go", "+++ b/selector-expressions.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "16a9b4f62a29df6e8977c8767ed05f3939bd361d..54d50ce002201d9b758fcd44c8c0cc7d2df914e0" }]