[{ "testCaseDescription": "go-grouped-var-declarations-setup-test", "expectedResult": { "changes": { "grouped-var-declarations.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": [ "grouped-var-declarations.go" ], "patch": [ "diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go", "index e69de29b..79058077 100644", "--- a/grouped-var-declarations.go", "+++ b/grouped-var-declarations.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "709a2882d4a8b0f97b50719a4bbcb13eee1c5000..00392606d9dbbdc4624e833e75459af479dccc56" } ,{ "testCaseDescription": "go-grouped-var-declarations-insert-test", "expectedResult": { "changes": { "grouped-var-declarations.go": [ { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 9 ] } }, "summary": "Added the 'zero' var assignment in the main function" }, { "span": { "insert": { "start": [ 6, 1 ], "end": [ 6, 8 ] } }, "summary": "Added the 'one' var assignment in the main function" } ] }, "errors": {} }, "filePaths": [ "grouped-var-declarations.go" ], "patch": [ "diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go", "index 79058077..cdb45b39 100644", "--- a/grouped-var-declarations.go", "+++ b/grouped-var-declarations.go", "@@ -1,5 +1,8 @@", " package main", " ", " func main() {", "-", "+var (", "+zero = 0", "+one = 1", "+)", " }" ], "gitDir": "test/corpus/repos/go", "shas": "00392606d9dbbdc4624e833e75459af479dccc56..a9b3987a15dbba4a33ca4db080c2ec55dd581448" } ,{ "testCaseDescription": "go-grouped-var-declarations-replacement-test", "expectedResult": { "changes": { "grouped-var-declarations.go": [ { "span": { "replace": [ { "start": [ 5, 1 ], "end": [ 5, 5 ] }, { "start": [ 5, 1 ], "end": [ 5, 2 ] } ] }, "summary": "Replaced the 'zero' identifier with the 'a' identifier in the a var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 6, 1 ], "end": [ 6, 4 ] }, { "start": [ 6, 1 ], "end": [ 6, 2 ] } ] }, "summary": "Replaced the 'one' identifier with the 'b' identifier in the b var assignment of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "grouped-var-declarations.go" ], "patch": [ "diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go", "index cdb45b39..806a5935 100644", "--- a/grouped-var-declarations.go", "+++ b/grouped-var-declarations.go", "@@ -2,7 +2,7 @@ package main", " ", " func main() {", " var (", "-zero = 0", "-one = 1", "+a = 0", "+b = 1", " )", " }" ], "gitDir": "test/corpus/repos/go", "shas": "a9b3987a15dbba4a33ca4db080c2ec55dd581448..4d1bd7b9bb5f7cfb104bc4a61d838736be0ddbf8" } ,{ "testCaseDescription": "go-grouped-var-declarations-delete-replacement-test", "expectedResult": { "changes": { "grouped-var-declarations.go": [ { "span": { "replace": [ { "start": [ 5, 1 ], "end": [ 5, 2 ] }, { "start": [ 5, 1 ], "end": [ 5, 5 ] } ] }, "summary": "Replaced the 'a' identifier with the 'zero' identifier in the zero var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 6, 1 ], "end": [ 6, 2 ] }, { "start": [ 6, 1 ], "end": [ 6, 4 ] } ] }, "summary": "Replaced the 'b' identifier with the 'one' identifier in the one var assignment of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "grouped-var-declarations.go" ], "patch": [ "diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go", "index 806a5935..cdb45b39 100644", "--- a/grouped-var-declarations.go", "+++ b/grouped-var-declarations.go", "@@ -2,7 +2,7 @@ package main", " ", " func main() {", " var (", "-a = 0", "-b = 1", "+zero = 0", "+one = 1", " )", " }" ], "gitDir": "test/corpus/repos/go", "shas": "4d1bd7b9bb5f7cfb104bc4a61d838736be0ddbf8..704fc518713d98a9d2a93306231d4d3a47f5d2c5" } ,{ "testCaseDescription": "go-grouped-var-declarations-delete-insert-test", "expectedResult": { "changes": { "grouped-var-declarations.go": [ { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 9 ] } }, "summary": "Deleted the 'zero' var assignment in the main function" }, { "span": { "delete": { "start": [ 6, 1 ], "end": [ 6, 8 ] } }, "summary": "Deleted the 'one' var assignment in the main function" } ] }, "errors": {} }, "filePaths": [ "grouped-var-declarations.go" ], "patch": [ "diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go", "index cdb45b39..79058077 100644", "--- a/grouped-var-declarations.go", "+++ b/grouped-var-declarations.go", "@@ -1,8 +1,5 @@", " package main", " ", " func main() {", "-var (", "-zero = 0", "-one = 1", "-)", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "704fc518713d98a9d2a93306231d4d3a47f5d2c5..a9794d8d4c27af89f1bdae1f4fe78889434cc4c0" } ,{ "testCaseDescription": "go-grouped-var-declarations-teardown-test", "expectedResult": { "changes": { "grouped-var-declarations.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": [ "grouped-var-declarations.go" ], "patch": [ "diff --git a/grouped-var-declarations.go b/grouped-var-declarations.go", "index 79058077..e69de29b 100644", "--- a/grouped-var-declarations.go", "+++ b/grouped-var-declarations.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "a9794d8d4c27af89f1bdae1f4fe78889434cc4c0..b0b64b1a9e2c2a4cc4680a9b3d88bda77fe0ffca" }]