[{ "testCaseDescription": "go-function-literals-setup-test", "expectedResult": { "changes": { "function-literals.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Added the 'main' module" } ] }, "errors": {} }, "filePaths": [ "function-literals.go" ], "patch": [ "diff --git a/function-literals.go b/function-literals.go", "index e69de29..7905807 100644", "--- a/function-literals.go", "+++ b/function-literals.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "fed3f54df513dc6e5faff4d10a233dd6c9f0a200..3c9abf4f527fc75f4953598565c29109d06516c0" } ,{ "testCaseDescription": "go-function-literals-insert-test", "expectedResult": { "changes": { "function-literals.go": [ { "span": { "insert": { "start": [ 4, 7 ], "end": [ 6, 2 ] } }, "summary": "Added the 's1' var assignment in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "function-literals.go" ], "patch": [ "diff --git a/function-literals.go b/function-literals.go", "index 7905807..1f4ead9 100644", "--- a/function-literals.go", "+++ b/function-literals.go", "@@ -1,5 +1,7 @@", " package main", " ", " func main() {", "-", "+const s1 = func(s string) (int, int) {", "+return 1, 2", "+}", " }" ], "gitDir": "test/corpus/repos/go", "shas": "3c9abf4f527fc75f4953598565c29109d06516c0..3872e808df9131009d82edf5d1632fe493a131d5" } ,{ "testCaseDescription": "go-function-literals-replacement-test", "expectedResult": { "changes": { "function-literals.go": [ { "span": { "replace": [ { "start": [ 4, 17 ], "end": [ 4, 18 ] }, { "start": [ 4, 17 ], "end": [ 4, 18 ] } ] }, "summary": "Replaced the 's' identifier with the 'b' identifier in the s1 var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 19 ], "end": [ 4, 25 ] }, { "start": [ 4, 19 ], "end": [ 4, 22 ] } ] }, "summary": "Replaced the 'string' identifier with the 'int' identifier in the s1 var assignment of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "function-literals.go" ], "patch": [ "diff --git a/function-literals.go b/function-literals.go", "index 1f4ead9..7b03466 100644", "--- a/function-literals.go", "+++ b/function-literals.go", "@@ -1,7 +1,7 @@", " package main", " ", " func main() {", "-const s1 = func(s string) (int, int) {", "+const s1 = func(b int) (string, string) {", " return 1, 2", " }", " }" ], "gitDir": "test/corpus/repos/go", "shas": "3872e808df9131009d82edf5d1632fe493a131d5..5443f3462af5d6635c6de7ac9833a8f427702469" } ,{ "testCaseDescription": "go-function-literals-delete-replacement-test", "expectedResult": { "changes": { "function-literals.go": [ { "span": { "replace": [ { "start": [ 4, 17 ], "end": [ 4, 18 ] }, { "start": [ 4, 17 ], "end": [ 4, 18 ] } ] }, "summary": "Replaced the 'b' identifier with the 's' identifier in the s1 var assignment of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 19 ], "end": [ 4, 22 ] }, { "start": [ 4, 19 ], "end": [ 4, 25 ] } ] }, "summary": "Replaced the 'int' identifier with the 'string' identifier in the s1 var assignment of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "function-literals.go" ], "patch": [ "diff --git a/function-literals.go b/function-literals.go", "index 7b03466..1f4ead9 100644", "--- a/function-literals.go", "+++ b/function-literals.go", "@@ -1,7 +1,7 @@", " package main", " ", " func main() {", "-const s1 = func(b int) (string, string) {", "+const s1 = func(s string) (int, int) {", " return 1, 2", " }", " }" ], "gitDir": "test/corpus/repos/go", "shas": "5443f3462af5d6635c6de7ac9833a8f427702469..0a813dbfcf2eee80a29b64940d6f7df0098431ec" } ,{ "testCaseDescription": "go-function-literals-delete-insert-test", "expectedResult": { "changes": { "function-literals.go": [ { "span": { "delete": { "start": [ 4, 7 ], "end": [ 6, 2 ] } }, "summary": "Deleted the 's1' var assignment in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "function-literals.go" ], "patch": [ "diff --git a/function-literals.go b/function-literals.go", "index 1f4ead9..7905807 100644", "--- a/function-literals.go", "+++ b/function-literals.go", "@@ -1,7 +1,5 @@", " package main", " ", " func main() {", "-const s1 = func(s string) (int, int) {", "-return 1, 2", "-}", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "0a813dbfcf2eee80a29b64940d6f7df0098431ec..b60e9e4bbc4eadc5871f18f472304a4f1abfbf32" } ,{ "testCaseDescription": "go-function-literals-teardown-test", "expectedResult": { "changes": { "function-literals.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Deleted the 'main' module" } ] }, "errors": {} }, "filePaths": [ "function-literals.go" ], "patch": [ "diff --git a/function-literals.go b/function-literals.go", "index 7905807..e69de29 100644", "--- a/function-literals.go", "+++ b/function-literals.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "b60e9e4bbc4eadc5871f18f472304a4f1abfbf32..b4de8673b198ab5744eaaf91bcff29a2c9f2267c" }]