[{ "testCaseDescription": "go-method-declarations-setup-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Added the 'main' module" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index e69de29..7905807 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {", "+", "+}" ], "gitDir": "test/corpus/repos/go", "shas": "f7314a39c28dfa8d01e76f5cca826d40971d91e3..2c2ed727360a09291c683f58205e9cef4e315217" } ,{ "testCaseDescription": "go-method-declarations-insert-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "insert": { "start": [ 4, 41 ], "end": [ 4, 45 ] } }, "summary": "Added the 'bool' identifier in the main function of the 'main' module" }, { "span": { "insert": { "start": [ 4, 46 ], "end": [ 4, 48 ] } }, "summary": "Added the '{}' literal_value in the main function of the 'main' module" } ] }, "errors": { "method-declarations.go": [ { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 40 ] } }, "summary": "Added the 'func (self Person) Equals(other Person)' at line 4, column 1 - line 4, column 40 in the main function of the 'main' module" } ] } }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 7905807..5917528 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-", "+func (self Person) Equals(other Person) bool {}", " }" ], "gitDir": "test/corpus/repos/go", "shas": "2c2ed727360a09291c683f58205e9cef4e315217..86f37c126d371b10a20f6f1dd37bf5bb55e9aad6" } ,{ "testCaseDescription": "go-method-declarations-replacement-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "replace": [ { "start": [ 4, 12 ], "end": [ 4, 18 ] }, { "start": [ 4, 12 ], "end": [ 4, 15 ] } ] }, "summary": "Replaced the 'Person' identifier with the 'Num' identifier in the main function of the 'main' module" }, { "span": { "replace": [ { "start": [ 4, 33 ], "end": [ 4, 39 ] }, { "start": [ 4, 30 ], "end": [ 4, 33 ] } ] }, "summary": "Replaced the 'Person' identifier with the 'Num' identifier in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 5917528..57f6bd3 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-func (self Person) Equals(other Person) bool {}", "+func (self Num) Equals(other Num) bool {}", " }" ], "gitDir": "test/corpus/repos/go", "shas": "86f37c126d371b10a20f6f1dd37bf5bb55e9aad6..3587fe32cd362e467e00b9663ba376ebe3d47d21" } ,{ "testCaseDescription": "go-method-declarations-delete-replacement-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "replace": [ { "start": [ 4, 12 ], "end": [ 4, 15 ] }, { "start": [ 4, 12 ], "end": [ 4, 18 ] } ] }, "summary": "Replaced the 'Num' identifier with the 'Person' identifier in the main function of the 'main' module" }, { "span": { "replace": [ { "start": [ 4, 30 ], "end": [ 4, 33 ] }, { "start": [ 4, 33 ], "end": [ 4, 39 ] } ] }, "summary": "Replaced the 'Num' identifier with the 'Person' identifier in the main function of the 'main' module" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 57f6bd3..5917528 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-func (self Num) Equals(other Num) bool {}", "+func (self Person) Equals(other Person) bool {}", " }" ], "gitDir": "test/corpus/repos/go", "shas": "3587fe32cd362e467e00b9663ba376ebe3d47d21..b0c325d1be5d7ec74cd18b46aadb32f19e9aea00" } ,{ "testCaseDescription": "go-method-declarations-delete-insert-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "delete": { "start": [ 4, 41 ], "end": [ 4, 45 ] } }, "summary": "Deleted the 'bool' identifier in the main function of the 'main' module" }, { "span": { "delete": { "start": [ 4, 46 ], "end": [ 4, 48 ] } }, "summary": "Deleted the '{}' literal_value in the main function of the 'main' module" } ] }, "errors": { "method-declarations.go": [ { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 40 ] } }, "summary": "Deleted the 'func (self Person) Equals(other Person)' at line 4, column 1 - line 4, column 40 in the main function of the 'main' module" } ] } }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 5917528..7905807 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1,5 +1,5 @@", " package main", " ", " func main() {", "-func (self Person) Equals(other Person) bool {}", "+", " }" ], "gitDir": "test/corpus/repos/go", "shas": "b0c325d1be5d7ec74cd18b46aadb32f19e9aea00..be583818264bcee80d0715c43ae582b94e41db57" } ,{ "testCaseDescription": "go-method-declarations-teardown-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 6, 1 ] } }, "summary": "Deleted the 'main' module" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 7905807..e69de29 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {", "-", "-}" ], "gitDir": "test/corpus/repos/go", "shas": "be583818264bcee80d0715c43ae582b94e41db57..67a6dc5e7422cb3fedf2a2379ebff5b53592c751" }]