[{ "testCaseDescription": "go-select-statements-setup-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Added the 'main' module" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index e69de29b..79058077 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "fbe6e91c23da3949f63a0e46bb4472bcc7e4286d..94699f5f72698f0e925d06a28c21752d26871ac2" } ,{ "testCaseDescription": "go-select-statements-insert-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "insert": { "start": [ 4, 1 ], "end": [ 13, 2 ] } }, "summary": "Added a select statement in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index 79058077..6806fa67 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -1,5 +1,14 @@", " package main", " ", " func main() {", "-", "+select {", "+ case x := <-c:", "+ println(x)", "+ case y <- c:", "+ println(5)", "+ case <-time.After(1):", "+ println(6)", "+ default:", "+ return", "+}", " }" ], "gitDir": "test/corpus/repos/go", "shas": "94699f5f72698f0e925d06a28c21752d26871ac2..c2860c3ff712d34e849c42258ac6a42d3596dbe1" } ,{ "testCaseDescription": "go-select-statements-replacement-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "replace": [ { "start": [ 5, 8 ], "end": [ 5, 9 ] }, { "start": [ 5, 8 ], "end": [ 5, 9 ] } ] }, "summary": "Replaced the 'x' identifier with the 'a' identifier in the main function of the 'main' module" }, { "span": { "replace": [ { "start": [ 7, 8 ], "end": [ 7, 9 ] }, { "start": [ 7, 8 ], "end": [ 7, 9 ] } ] }, "summary": "Replaced the 'y' identifier with the 'b' identifier in the main function of the 'main' module" }, { "span": { "replace": [ { "start": [ 9, 21 ], "end": [ 9, 22 ] }, { "start": [ 9, 21 ], "end": [ 9, 22 ] } ] }, "summary": "Replaced '1' with '2' in the time[After](2) function call of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index 6806fa67..1ca26fb9 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -2,11 +2,11 @@ package main", " ", " func main() {", " select {", "- case x := <-c:", "+ case a := <-c:", " println(x)", "- case y <- c:", "+ case b <- c:", " println(5)", "- case <-time.After(1):", "+ case <-time.After(2):", " println(6)", " default:", " return" ], "gitDir": "test/corpus/repos/go", "shas": "c2860c3ff712d34e849c42258ac6a42d3596dbe1..2528910607cf882c62beacf455cfcebd13c0cd23" } ,{ "testCaseDescription": "go-select-statements-delete-replacement-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "replace": [ { "start": [ 5, 8 ], "end": [ 5, 9 ] }, { "start": [ 5, 8 ], "end": [ 5, 9 ] } ] }, "summary": "Replaced the 'a' identifier with the 'x' identifier in the main function of the 'main' module" }, { "span": { "replace": [ { "start": [ 7, 8 ], "end": [ 7, 9 ] }, { "start": [ 7, 8 ], "end": [ 7, 9 ] } ] }, "summary": "Replaced the 'b' identifier with the 'y' identifier in the main function of the 'main' module" }, { "span": { "replace": [ { "start": [ 9, 21 ], "end": [ 9, 22 ] }, { "start": [ 9, 21 ], "end": [ 9, 22 ] } ] }, "summary": "Replaced '2' with '1' in the time[After](1) function call of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index 1ca26fb9..6806fa67 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -2,11 +2,11 @@ package main", " ", " func main() {", " select {", "- case a := <-c:", "+ case x := <-c:", " println(x)", "- case b <- c:", "+ case y <- c:", " println(5)", "- case <-time.After(2):", "+ case <-time.After(1):", " println(6)", " default:", " return" ], "gitDir": "test/corpus/repos/go", "shas": "2528910607cf882c62beacf455cfcebd13c0cd23..919009e39d038df099dd98e7abaf9f8b99c9281a" } ,{ "testCaseDescription": "go-select-statements-delete-insert-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "delete": { "start": [ 4, 1 ], "end": [ 13, 2 ] } }, "summary": "Deleted a select statement in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index 6806fa67..79058077 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -1,14 +1,5 @@", " package main", " ", " func main() {", "-select {", "- case x := <-c:", "- println(x)", "- case y <- c:", "- println(5)", "- case <-time.After(1):", "- println(6)", "- default:", "- return", "-}", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "919009e39d038df099dd98e7abaf9f8b99c9281a..17be2d4cc4bf5281cc3b75e9174d7b579ccbc81e" } ,{ "testCaseDescription": "go-select-statements-teardown-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Deleted the 'main' module" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index 79058077..e69de29b 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "17be2d4cc4bf5281cc3b75e9174d7b579ccbc81e..5ca6aa307b5684ac4eda03fead620e2d753f2e01" }]