[{ "testCaseDescription": "go-short-var-declarations-setup-test", "expectedResult": { "changes": { "short-var-declarations.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Added the 'main' module" } ] }, "errors": {} }, "filePaths": [ "short-var-declarations.go" ], "patch": [ "diff --git a/short-var-declarations.go b/short-var-declarations.go", "index e69de29..7905807 100644", "--- a/short-var-declarations.go", "+++ b/short-var-declarations.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "6df35ccb381d5bb9112a73c779d2daea982f05fe..86b2285d6733151c3b2be043f6c63fb3bb52e0f6" } ,{ "testCaseDescription": "go-short-var-declarations-insert-test", "expectedResult": { "changes": { "short-var-declarations.go": [ { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 13 ] } }, "summary": "Added the 'a' variable in the main function of the 'main' module" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 13 ] } }, "summary": "Added the 'b' variable in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "short-var-declarations.go" ], "patch": [ "diff --git a/short-var-declarations.go b/short-var-declarations.go", "index 7905807..4ca1ce3 100644", "--- a/short-var-declarations.go", "+++ b/short-var-declarations.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-", "+a, b := 1, 2", " }" ], "gitDir": "test/corpus/repos/go", "shas": "86b2285d6733151c3b2be043f6c63fb3bb52e0f6..2d26c4dbdeb859baf02e695621096f6d0b5ff834" } ,{ "testCaseDescription": "go-short-var-declarations-replacement-test", "expectedResult": { "changes": { "short-var-declarations.go": [ { "span": { "replace": [ { "start": [ 4, 1 ], "end": [ 4, 2 ] }, { "start": [ 4, 1 ], "end": [ 4, 2 ] } ] }, "summary": "Replaced the 'a' identifier with the 'x' identifier in the x variable of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 9 ], "end": [ 4, 10 ] }, { "start": [ 4, 9 ], "end": [ 4, 10 ] } ] }, "summary": "Replaced '1' with '3' in the x variable of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 4 ], "end": [ 4, 5 ] }, { "start": [ 4, 4 ], "end": [ 4, 5 ] } ] }, "summary": "Replaced the 'b' identifier with the 'y' identifier in the y variable of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 12 ], "end": [ 4, 13 ] }, { "start": [ 4, 12 ], "end": [ 4, 13 ] } ] }, "summary": "Replaced '2' with '4' in the y variable of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "short-var-declarations.go" ], "patch": [ "diff --git a/short-var-declarations.go b/short-var-declarations.go", "index 4ca1ce3..bbbf937 100644", "--- a/short-var-declarations.go", "+++ b/short-var-declarations.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-a, b := 1, 2", "+x, y := 3, 4", " }" ], "gitDir": "test/corpus/repos/go", "shas": "2d26c4dbdeb859baf02e695621096f6d0b5ff834..9a618c7df51e0b502758ec859a21e65481dac7e6" } ,{ "testCaseDescription": "go-short-var-declarations-delete-replacement-test", "expectedResult": { "changes": { "short-var-declarations.go": [ { "span": { "replace": [ { "start": [ 4, 1 ], "end": [ 4, 2 ] }, { "start": [ 4, 1 ], "end": [ 4, 2 ] } ] }, "summary": "Replaced the 'x' identifier with the 'a' identifier in the a variable of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 9 ], "end": [ 4, 10 ] }, { "start": [ 4, 9 ], "end": [ 4, 10 ] } ] }, "summary": "Replaced '3' with '1' in the a variable of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 4 ], "end": [ 4, 5 ] }, { "start": [ 4, 4 ], "end": [ 4, 5 ] } ] }, "summary": "Replaced the 'y' identifier with the 'b' identifier in the b variable of the 'main' function" }, { "span": { "replace": [ { "start": [ 4, 12 ], "end": [ 4, 13 ] }, { "start": [ 4, 12 ], "end": [ 4, 13 ] } ] }, "summary": "Replaced '4' with '2' in the b variable of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "short-var-declarations.go" ], "patch": [ "diff --git a/short-var-declarations.go b/short-var-declarations.go", "index bbbf937..4ca1ce3 100644", "--- a/short-var-declarations.go", "+++ b/short-var-declarations.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-x, y := 3, 4", "+a, b := 1, 2", " }" ], "gitDir": "test/corpus/repos/go", "shas": "9a618c7df51e0b502758ec859a21e65481dac7e6..03987914f1091b841d6890bbf1d063f925a5c78b" } ,{ "testCaseDescription": "go-short-var-declarations-delete-insert-test", "expectedResult": { "changes": { "short-var-declarations.go": [ { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 13 ] } }, "summary": "Deleted the 'a' variable in the main function of the 'main' module" }, { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 13 ] } }, "summary": "Deleted the 'b' variable in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "short-var-declarations.go" ], "patch": [ "diff --git a/short-var-declarations.go b/short-var-declarations.go", "index 4ca1ce3..7905807 100644", "--- a/short-var-declarations.go", "+++ b/short-var-declarations.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-a, b := 1, 2", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "03987914f1091b841d6890bbf1d063f925a5c78b..c7f5a909729cdb645c7992adba9b6edeea91658d" } ,{ "testCaseDescription": "go-short-var-declarations-teardown-test", "expectedResult": { "changes": { "short-var-declarations.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Deleted the 'main' module" } ] }, "errors": {} }, "filePaths": [ "short-var-declarations.go" ], "patch": [ "diff --git a/short-var-declarations.go b/short-var-declarations.go", "index 7905807..e69de29 100644", "--- a/short-var-declarations.go", "+++ b/short-var-declarations.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "c7f5a909729cdb645c7992adba9b6edeea91658d..dd3bb4dd8c16d7b788263fcb69e7d294a4816146" }]