[{ "testCaseDescription": "go-unary-expressions-setup-test", "expectedResult": { "changes": { "unary-expressions.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": [ "unary-expressions.go" ], "patch": [ "diff --git a/unary-expressions.go b/unary-expressions.go", "index e69de29b..79058077 100644", "--- a/unary-expressions.go", "+++ b/unary-expressions.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "62e181eaec5ef85a5d7816331750f05ed4be5ed3..ad7c2d4b1b3af4d629262b596d4d76591b0f2939" } ,{ "testCaseDescription": "go-unary-expressions-insert-test", "expectedResult": { "changes": { "unary-expressions.go": [ { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 5 ] } }, "summary": "Added the '!<-a' operator in the main function" }, { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 7 ] } }, "summary": "Added the '*foo()' operator in the main function" } ] }, "errors": {} }, "filePaths": [ "unary-expressions.go" ], "patch": [ "diff --git a/unary-expressions.go b/unary-expressions.go", "index 79058077..bdf9ccc5 100644", "--- a/unary-expressions.go", "+++ b/unary-expressions.go", "@@ -1,5 +1,6 @@", " package main", " ", " func main() {", "-", "+!<-a", "+*foo()", " }" ], "gitDir": "test/corpus/repos/go", "shas": "ad7c2d4b1b3af4d629262b596d4d76591b0f2939..857884599a5b10f98e339f72e7e0ef5dff6ea432" } ,{ "testCaseDescription": "go-unary-expressions-replacement-test", "expectedResult": { "changes": { "unary-expressions.go": [ { "span": { "replace": [ { "start": [ 4, 4 ], "end": [ 4, 5 ] }, { "start": [ 4, 4 ], "end": [ 4, 5 ] } ] }, "summary": "Replaced the 'a' identifier with the 'b' identifier in the main function" }, { "span": { "replace": [ { "start": [ 5, 2 ], "end": [ 5, 5 ] }, { "start": [ 5, 2 ], "end": [ 5, 5 ] } ] }, "summary": "Replaced the 'foo' identifier with the 'bar' identifier in the bar() function call of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "unary-expressions.go" ], "patch": [ "diff --git a/unary-expressions.go b/unary-expressions.go", "index bdf9ccc5..cf8ed882 100644", "--- a/unary-expressions.go", "+++ b/unary-expressions.go", "@@ -1,6 +1,6 @@", " package main", " ", " func main() {", "-!<-a", "-*foo()", "+!<-b", "+*bar()", " }" ], "gitDir": "test/corpus/repos/go", "shas": "857884599a5b10f98e339f72e7e0ef5dff6ea432..dacb9cd739035ebe3919a96f7f90cd75e48b832e" } ,{ "testCaseDescription": "go-unary-expressions-delete-replacement-test", "expectedResult": { "changes": { "unary-expressions.go": [ { "span": { "replace": [ { "start": [ 4, 4 ], "end": [ 4, 5 ] }, { "start": [ 4, 4 ], "end": [ 4, 5 ] } ] }, "summary": "Replaced the 'b' identifier with the 'a' identifier in the main function" }, { "span": { "replace": [ { "start": [ 5, 2 ], "end": [ 5, 5 ] }, { "start": [ 5, 2 ], "end": [ 5, 5 ] } ] }, "summary": "Replaced the 'bar' identifier with the 'foo' identifier in the foo() function call of the 'main' function" } ] }, "errors": {} }, "filePaths": [ "unary-expressions.go" ], "patch": [ "diff --git a/unary-expressions.go b/unary-expressions.go", "index cf8ed882..bdf9ccc5 100644", "--- a/unary-expressions.go", "+++ b/unary-expressions.go", "@@ -1,6 +1,6 @@", " package main", " ", " func main() {", "-!<-b", "-*bar()", "+!<-a", "+*foo()", " }" ], "gitDir": "test/corpus/repos/go", "shas": "dacb9cd739035ebe3919a96f7f90cd75e48b832e..5ef7adc637975b15415197ba4e8ce354e69789fd" } ,{ "testCaseDescription": "go-unary-expressions-delete-insert-test", "expectedResult": { "changes": { "unary-expressions.go": [ { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 5 ] } }, "summary": "Deleted the '!<-a' operator in the main function" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 7 ] } }, "summary": "Deleted the '*foo()' operator in the main function" } ] }, "errors": {} }, "filePaths": [ "unary-expressions.go" ], "patch": [ "diff --git a/unary-expressions.go b/unary-expressions.go", "index bdf9ccc5..79058077 100644", "--- a/unary-expressions.go", "+++ b/unary-expressions.go", "@@ -1,6 +1,5 @@", " package main", " ", " func main() {", "-!<-a", "-*foo()", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "5ef7adc637975b15415197ba4e8ce354e69789fd..30d627648cb775a76037cf8a7ab0f03c8588727b" } ,{ "testCaseDescription": "go-unary-expressions-teardown-test", "expectedResult": { "changes": { "unary-expressions.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": [ "unary-expressions.go" ], "patch": [ "diff --git a/unary-expressions.go b/unary-expressions.go", "index 79058077..e69de29b 100644", "--- a/unary-expressions.go", "+++ b/unary-expressions.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "30d627648cb775a76037cf8a7ab0f03c8588727b..6ea06aa1e8431651d63087d1f623f409947a25f1" }]