[{ "testCaseDescription": "go-string-literals-setup-test", "expectedResult": { "changes": { "string-literals.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": [ "string-literals.go" ], "patch": [ "diff --git a/string-literals.go b/string-literals.go", "index e69de29b..79058077 100644", "--- a/string-literals.go", "+++ b/string-literals.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "845e2019d345a8a5ab4801dc77607dccc4be32be..0dbecbb87258d3084cbcac86a37e3b25301fc3a2" } ,{ "testCaseDescription": "go-string-literals-insert-test", "expectedResult": { "changes": { "string-literals.go": [ { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 8 ] } }, "summary": "Added the 'a' var assignment in the main function" }, { "span": { "insert": { "start": [ 6, 1 ], "end": [ 6, 18 ] } }, "summary": "Added the 'b' var assignment in the main function" } ] }, "errors": {} }, "filePaths": [ "string-literals.go" ], "patch": [ "diff --git a/string-literals.go b/string-literals.go", "index 79058077..9a69966c 100644", "--- a/string-literals.go", "+++ b/string-literals.go", "@@ -1,5 +1,8 @@", " package main", " ", " func main() {", "-", "+const (", "+a = \"0\"", "+b = \"hello world\"", "+)", " }" ], "gitDir": "test/corpus/repos/go", "shas": "0dbecbb87258d3084cbcac86a37e3b25301fc3a2..47c17c7b8242f787ba40940e4f4285cdbbeec475" } ,{ "testCaseDescription": "go-string-literals-replacement-test", "expectedResult": { "changes": { "string-literals.go": [ { "span": { "replace": [ { "start": [ 5, 5 ], "end": [ 5, 8 ] }, { "start": [ 5, 5 ], "end": [ 5, 8 ] } ] }, "summary": "Replaced the \"0\" string with the \"2\" string in the a var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 6, 5 ], "end": [ 6, 18 ] }, { "start": [ 6, 5 ], "end": [ 6, 9 ] } ] }, "summary": "Replaced the \"hello world\" string with the \"hi\" string in the b var assignment of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "string-literals.go" ], "patch": [ "diff --git a/string-literals.go b/string-literals.go", "index 9a69966c..fbbdb93e 100644", "--- a/string-literals.go", "+++ b/string-literals.go", "@@ -2,7 +2,7 @@ package main", " ", " func main() {", " const (", "-a = \"0\"", "-b = \"hello world\"", "+a = \"2\"", "+b = \"hi\"", " )", " }" ], "gitDir": "test/corpus/repos/go", "shas": "47c17c7b8242f787ba40940e4f4285cdbbeec475..e7d5a490caf4ab2e9d29a486417e150348e18bfc" } ,{ "testCaseDescription": "go-string-literals-delete-replacement-test", "expectedResult": { "changes": { "string-literals.go": [ { "span": { "replace": [ { "start": [ 5, 5 ], "end": [ 5, 8 ] }, { "start": [ 5, 5 ], "end": [ 5, 8 ] } ] }, "summary": "Replaced the \"2\" string with the \"0\" string in the a var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 6, 5 ], "end": [ 6, 9 ] }, { "start": [ 6, 5 ], "end": [ 6, 18 ] } ] }, "summary": "Replaced the \"hi\" string with the \"hello world\" string in the b var assignment of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "string-literals.go" ], "patch": [ "diff --git a/string-literals.go b/string-literals.go", "index fbbdb93e..9a69966c 100644", "--- a/string-literals.go", "+++ b/string-literals.go", "@@ -2,7 +2,7 @@ package main", " ", " func main() {", " const (", "-a = \"2\"", "-b = \"hi\"", "+a = \"0\"", "+b = \"hello world\"", " )", " }" ], "gitDir": "test/corpus/repos/go", "shas": "e7d5a490caf4ab2e9d29a486417e150348e18bfc..5fe32f9e2091f5b5e5c013b4e3d7d9982589bdae" } ,{ "testCaseDescription": "go-string-literals-delete-insert-test", "expectedResult": { "changes": { "string-literals.go": [ { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 8 ] } }, "summary": "Deleted the 'a' var assignment in the main function" }, { "span": { "delete": { "start": [ 6, 1 ], "end": [ 6, 18 ] } }, "summary": "Deleted the 'b' var assignment in the main function" } ] }, "errors": {} }, "filePaths": [ "string-literals.go" ], "patch": [ "diff --git a/string-literals.go b/string-literals.go", "index 9a69966c..79058077 100644", "--- a/string-literals.go", "+++ b/string-literals.go", "@@ -1,8 +1,5 @@", " package main", " ", " func main() {", "-const (", "-a = \"0\"", "-b = \"hello world\"", "-)", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "5fe32f9e2091f5b5e5c013b4e3d7d9982589bdae..a016e01fe324040edd848efad3fe348caeb252d9" } ,{ "testCaseDescription": "go-string-literals-teardown-test", "expectedResult": { "changes": { "string-literals.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": [ "string-literals.go" ], "patch": [ "diff --git a/string-literals.go b/string-literals.go", "index 79058077..e69de29b 100644", "--- a/string-literals.go", "+++ b/string-literals.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "a016e01fe324040edd848efad3fe348caeb252d9..8c647bd3f218e1592aa521ac3073922939c2814c" }]