[{ "testCaseDescription": "go-const-with-implicit-values-setup-test", "expectedResult": { "changes": { "const-with-implicit-values.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Added the 'main' module" } ] }, "errors": {} }, "filePaths": [ "const-with-implicit-values.go" ], "patch": [ "diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go", "index e69de29..7905807 100644", "--- a/const-with-implicit-values.go", "+++ b/const-with-implicit-values.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "f0c68a54ccb1dd50e6d5bfa404c61d856d24188b..96561f5a1a42091a301844f461c8c5c13ece43ff" } ,{ "testCaseDescription": "go-const-with-implicit-values-insert-test", "expectedResult": { "changes": { "const-with-implicit-values.go": [ { "span": { "insert": { "start": [ 5, 2 ], "end": [ 5, 13 ] } }, "summary": "Added the 'zero' var assignment in the main function of the 'main' module" }, { "span": { "insert": { "start": [ 6, 2 ], "end": [ 6, 5 ] } }, "summary": "Added the 'one' identifier in the main function of the 'main' module" }, { "span": { "insert": { "start": [ 7, 2 ], "end": [ 7, 5 ] } }, "summary": "Added the 'two' identifier in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "const-with-implicit-values.go" ], "patch": [ "diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go", "index 7905807..d98ee4c 100644", "--- a/const-with-implicit-values.go", "+++ b/const-with-implicit-values.go", "@@ -1,5 +1,9 @@", " package main", " ", " func main() {", "-", "+const (", "+ zero = iota", "+ one", "+ two", "+ )", " }" ], "gitDir": "test/corpus/repos/go", "shas": "96561f5a1a42091a301844f461c8c5c13ece43ff..de5c1eb243ac41c7844cbe22977d805bfaf689fc" } ,{ "testCaseDescription": "go-const-with-implicit-values-replacement-test", "expectedResult": { "changes": { "const-with-implicit-values.go": [ { "span": { "replace": [ { "start": [ 5, 2 ], "end": [ 5, 6 ] }, { "start": [ 5, 2 ], "end": [ 5, 3 ] } ] }, "summary": "Replaced the 'zero' identifier with the 'a' identifier in the a var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 6, 2 ], "end": [ 6, 5 ] }, { "start": [ 6, 2 ], "end": [ 6, 3 ] } ] }, "summary": "Replaced the 'one' identifier with the 'b' identifier in the main function of the 'main' module" }, { "span": { "replace": [ { "start": [ 7, 2 ], "end": [ 7, 5 ] }, { "start": [ 7, 2 ], "end": [ 7, 3 ] } ] }, "summary": "Replaced the 'two' identifier with the 'c' identifier in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "const-with-implicit-values.go" ], "patch": [ "diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go", "index d98ee4c..c4c9127 100644", "--- a/const-with-implicit-values.go", "+++ b/const-with-implicit-values.go", "@@ -2,8 +2,8 @@ package main", " ", " func main() {", " const (", "- zero = iota", "- one", "- two", "+ a = iota", "+ b", "+ c", " )", " }" ], "gitDir": "test/corpus/repos/go", "shas": "de5c1eb243ac41c7844cbe22977d805bfaf689fc..cf98e5f6f9f350ba2e730c770eeb1ebbe25f9beb" } ,{ "testCaseDescription": "go-const-with-implicit-values-delete-replacement-test", "expectedResult": { "changes": { "const-with-implicit-values.go": [ { "span": { "replace": [ { "start": [ 5, 2 ], "end": [ 5, 3 ] }, { "start": [ 5, 2 ], "end": [ 5, 6 ] } ] }, "summary": "Replaced the 'a' identifier with the 'zero' identifier in the zero var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 6, 2 ], "end": [ 6, 3 ] }, { "start": [ 6, 2 ], "end": [ 6, 5 ] } ] }, "summary": "Replaced the 'b' identifier with the 'one' identifier in the main function of the 'main' module" }, { "span": { "replace": [ { "start": [ 7, 2 ], "end": [ 7, 3 ] }, { "start": [ 7, 2 ], "end": [ 7, 5 ] } ] }, "summary": "Replaced the 'c' identifier with the 'two' identifier in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "const-with-implicit-values.go" ], "patch": [ "diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go", "index c4c9127..d98ee4c 100644", "--- a/const-with-implicit-values.go", "+++ b/const-with-implicit-values.go", "@@ -2,8 +2,8 @@ package main", " ", " func main() {", " const (", "- a = iota", "- b", "- c", "+ zero = iota", "+ one", "+ two", " )", " }" ], "gitDir": "test/corpus/repos/go", "shas": "cf98e5f6f9f350ba2e730c770eeb1ebbe25f9beb..b626735b7bb53a37d7681002a1689025be071367" } ,{ "testCaseDescription": "go-const-with-implicit-values-delete-insert-test", "expectedResult": { "changes": { "const-with-implicit-values.go": [ { "span": { "delete": { "start": [ 5, 2 ], "end": [ 5, 13 ] } }, "summary": "Deleted the 'zero' var assignment in the main function of the 'main' module" }, { "span": { "delete": { "start": [ 6, 2 ], "end": [ 6, 5 ] } }, "summary": "Deleted the 'one' identifier in the main function of the 'main' module" }, { "span": { "delete": { "start": [ 7, 2 ], "end": [ 7, 5 ] } }, "summary": "Deleted the 'two' identifier in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "const-with-implicit-values.go" ], "patch": [ "diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go", "index d98ee4c..7905807 100644", "--- a/const-with-implicit-values.go", "+++ b/const-with-implicit-values.go", "@@ -1,9 +1,5 @@", " package main", " ", " func main() {", "-const (", "- zero = iota", "- one", "- two", "- )", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "b626735b7bb53a37d7681002a1689025be071367..2f901427030c2df477ca0ba3e06aa67fc8da47d0" } ,{ "testCaseDescription": "go-const-with-implicit-values-teardown-test", "expectedResult": { "changes": { "const-with-implicit-values.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Deleted the 'main' module" } ] }, "errors": {} }, "filePaths": [ "const-with-implicit-values.go" ], "patch": [ "diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go", "index 7905807..e69de29 100644", "--- a/const-with-implicit-values.go", "+++ b/const-with-implicit-values.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "2f901427030c2df477ca0ba3e06aa67fc8da47d0..f38884c26d0f6bc391acbaad63a94d4a3da87b30" }]