[{ "testCaseDescription": "go-selector-expressions-setup-test", "expectedResult": { "changes": { "selector-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": [ "selector-expressions.go" ], "patch": [ "diff --git a/selector-expressions.go b/selector-expressions.go", "index e69de29b..79058077 100644", "--- a/selector-expressions.go", "+++ b/selector-expressions.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "39da12378f56efc6f5a7d91aa4cfd6dd9b410d0d..fd9b31c4cd54e4c44d98269cce2faff0c3da907b" } ,{ "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" } ] }, "errors": {} }, "filePaths": [ "selector-expressions.go" ], "patch": [ "diff --git a/selector-expressions.go b/selector-expressions.go", "index 79058077..8b4c745e 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": "fd9b31c4cd54e4c44d98269cce2faff0c3da907b..cb44fc99de5de15b963742ff38de9b05f6cf5759" } ,{ "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 8b4c745e..0e519e3e 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": "cb44fc99de5de15b963742ff38de9b05f6cf5759..d34c5acd304d3d054b62cdcd2e32e4e2e1535dcd" } ,{ "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 0e519e3e..8b4c745e 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": "d34c5acd304d3d054b62cdcd2e32e4e2e1535dcd..683e206087e8d3c5235e9521999ee08b7c069913" } ,{ "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" } ] }, "errors": {} }, "filePaths": [ "selector-expressions.go" ], "patch": [ "diff --git a/selector-expressions.go b/selector-expressions.go", "index 8b4c745e..79058077 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": "683e206087e8d3c5235e9521999ee08b7c069913..f2164e8ee879b26e7c0ac1b5ffa21fccf8a9bbac" } ,{ "testCaseDescription": "go-selector-expressions-teardown-test", "expectedResult": { "changes": { "selector-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": [ "selector-expressions.go" ], "patch": [ "diff --git a/selector-expressions.go b/selector-expressions.go", "index 79058077..e69de29b 100644", "--- a/selector-expressions.go", "+++ b/selector-expressions.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "f2164e8ee879b26e7c0ac1b5ffa21fccf8a9bbac..da87539e91454e018a1ba3c704f8fceb37fc9f2b" }]