[{ "testCaseDescription": "go-select-statements-insert-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 10, 2 ] } }, "summary": "Added a select statement" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index e69de29..7fe1c0b 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -0,0 +1,10 @@", "+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": "6aa20aa264c0a756b9fcf6d40dff9864c3370f2e..0a31f183f6a67c75588583344f429aa9e4d7f95d" } ,{ "testCaseDescription": "go-select-statements-replacement-insert-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 10, 2 ] } }, "summary": "Added a select statement" }, { "span": { "insert": { "start": [ 11, 1 ], "end": [ 20, 2 ] } }, "summary": "Added a select statement" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index 7fe1c0b..1403fc7 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -1,4 +1,24 @@", " select {", "+ case a := <-c:", "+ println(x)", "+ case b <- c:", "+ println(5)", "+ case <-time.After(2):", "+ println(6)", "+ default:", "+ return", "+}", "+select {", "+ case x := <-c:", "+ println(x)", "+ case y <- c:", "+ println(5)", "+ case <-time.After(1):", "+ println(6)", "+ default:", "+ return", "+}", "+select {", " case x := <-c:", " println(x)", " case y <- c:" ], "gitDir": "test/corpus/repos/go", "shas": "0a31f183f6a67c75588583344f429aa9e4d7f95d..4e0e84d82b42c9dbf28a2e6de77488129484817e" } ,{ "testCaseDescription": "go-select-statements-delete-insert-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "replace": [ { "start": [ 2, 8 ], "end": [ 2, 9 ] }, { "start": [ 2, 8 ], "end": [ 2, 9 ] } ] }, "summary": "Replaced the 'a' identifier with the 'x' identifier" }, { "span": { "replace": [ { "start": [ 4, 8 ], "end": [ 4, 9 ] }, { "start": [ 4, 8 ], "end": [ 4, 9 ] } ] }, "summary": "Replaced the 'b' identifier with the 'y' identifier" }, { "span": { "replace": [ { "start": [ 6, 21 ], "end": [ 6, 22 ] }, { "start": [ 6, 21 ], "end": [ 6, 22 ] } ] }, "summary": "Replaced '2' with '1'" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index 1403fc7..3e83983 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -1,9 +1,9 @@", " 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": "4e0e84d82b42c9dbf28a2e6de77488129484817e..2447f9fd4fb944f7dd5ccce48e2bdaf7762ddc1b" } ,{ "testCaseDescription": "go-select-statements-replacement-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "replace": [ { "start": [ 2, 8 ], "end": [ 2, 9 ] }, { "start": [ 2, 8 ], "end": [ 2, 9 ] } ] }, "summary": "Replaced the 'x' identifier with the 'a' identifier" }, { "span": { "replace": [ { "start": [ 4, 8 ], "end": [ 4, 9 ] }, { "start": [ 4, 8 ], "end": [ 4, 9 ] } ] }, "summary": "Replaced the 'y' identifier with the 'b' identifier" }, { "span": { "replace": [ { "start": [ 6, 21 ], "end": [ 6, 22 ] }, { "start": [ 6, 21 ], "end": [ 6, 22 ] } ] }, "summary": "Replaced '1' with '2'" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index 3e83983..1403fc7 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -1,9 +1,9 @@", " 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": "2447f9fd4fb944f7dd5ccce48e2bdaf7762ddc1b..904f07fdc1196eccb65693f0ed843fb9ec88164e" } ,{ "testCaseDescription": "go-select-statements-delete-replacement-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 10, 2 ] } }, "summary": "Deleted a select statement" }, { "span": { "delete": { "start": [ 11, 1 ], "end": [ 20, 2 ] } }, "summary": "Deleted a select statement" }, { "span": { "insert": { "start": [ 11, 1 ], "end": [ 20, 2 ] } }, "summary": "Added a select statement" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index 1403fc7..234dd89 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -1,14 +1,4 @@", " select {", "- case a := <-c:", "- println(x)", "- case b <- c:", "- println(5)", "- case <-time.After(2):", "- println(6)", "- default:", "- return", "-}", "-select {", " case x := <-c:", " println(x)", " case y <- c:", "@@ -19,11 +9,11 @@ select {", " return", " }", " 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": "904f07fdc1196eccb65693f0ed843fb9ec88164e..3290891245abbb207eb71d5425f37cd585a6c702" } ,{ "testCaseDescription": "go-select-statements-delete-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 10, 2 ] } }, "summary": "Deleted a select statement" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index 234dd89..d513030 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -1,14 +1,4 @@", " select {", "- case x := <-c:", "- println(x)", "- case y <- c:", "- println(5)", "- case <-time.After(1):", "- println(6)", "- default:", "- return", "-}", "-select {", " case a := <-c:", " println(x)", " case b <- c:" ], "gitDir": "test/corpus/repos/go", "shas": "3290891245abbb207eb71d5425f37cd585a6c702..caed7ea67101aabb9838fcc112a35930d265dd73" } ,{ "testCaseDescription": "go-select-statements-delete-rest-test", "expectedResult": { "changes": { "select-statements.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 10, 2 ] } }, "summary": "Deleted a select statement" } ] }, "errors": {} }, "filePaths": [ "select-statements.go" ], "patch": [ "diff --git a/select-statements.go b/select-statements.go", "index d513030..e69de29 100644", "--- a/select-statements.go", "+++ b/select-statements.go", "@@ -1,10 +0,0 @@", "-select {", "- case a := <-c:", "- println(x)", "- case b <- c:", "- println(5)", "- case <-time.After(2):", "- println(6)", "- default:", "- return", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "caed7ea67101aabb9838fcc112a35930d265dd73..83f784e3656d1bab0853dd001679a74827f28518" }]