[{ "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": "d39cc6bcd81255864bc210bd0ab92a71c0a80cc2..16d9a34f668dbafe6dbdfac745ffc44545f4bd9e" } ,{ "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": "16d9a34f668dbafe6dbdfac745ffc44545f4bd9e..5619d5dc5d1278e4363419d4f9c02a729726fc39" } ,{ "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": "5619d5dc5d1278e4363419d4f9c02a729726fc39..c4aa7c20e6d9a2950d7db2be45b980ddd7e99ce8" } ,{ "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": "c4aa7c20e6d9a2950d7db2be45b980ddd7e99ce8..e4a86bf76b1bf8a7419a94a59780b272876d53c1" } ,{ "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": "e4a86bf76b1bf8a7419a94a59780b272876d53c1..40eb9809170e085cc42ac58d979fca5b61d14679" } ,{ "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": "40eb9809170e085cc42ac58d979fca5b61d14679..8db0bd957201afac84d98da63dd95cb8e725c256" }]