[{ "testCaseDescription": "go-method-declarations-setup-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 13 ] } }, "summary": "Added the 'main' module" }, { "span": { "insert": { "start": [ 3, 1 ], "end": [ 3, 15 ] } }, "summary": "Added the 'main' function" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index e69de29b..6aaca9ef 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -0,0 +1,5 @@", "+package main", "+", "+func main() {}", "+", "+" ], "gitDir": "test/corpus/repos/go", "shas": "177fb35939c02b4bc6067142eab57a6cc2237513..2f023a586a3c306c01e1fbf646c7bffc5a6428b3" } ,{ "testCaseDescription": "go-method-declarations-insert-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 48 ] } }, "summary": "Added the '(other Person).Equals(…)' method" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 6aaca9ef..e556c016 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -2,4 +2,4 @@ package main", " ", " func main() {}", " ", "-", "+func (self Person) Equals(other Person) bool {}" ], "gitDir": "test/corpus/repos/go", "shas": "2f023a586a3c306c01e1fbf646c7bffc5a6428b3..d79d8d6400fbf0ee98ec1c1de105b35653bc6abf" } ,{ "testCaseDescription": "go-method-declarations-replacement-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "replace": [ { "start": [ 5, 33 ], "end": [ 5, 39 ] }, { "start": [ 5, 30 ], "end": [ 5, 33 ] } ] }, "summary": "Replaced the 'Person' identifier with the 'Num' identifier in the '(other Num).Equals(…)' method" }, { "span": { "replace": [ { "start": [ 5, 12 ], "end": [ 5, 18 ] }, { "start": [ 5, 12 ], "end": [ 5, 15 ] } ] }, "summary": "Replaced the 'Person' identifier with the 'Num' identifier in the '(other Num).Equals(…)' method" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index e556c016..1be6d205 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -2,4 +2,4 @@ package main", " ", " func main() {}", " ", "-func (self Person) Equals(other Person) bool {}", "+func (self Num) Equals(other Num) bool {}" ], "gitDir": "test/corpus/repos/go", "shas": "d79d8d6400fbf0ee98ec1c1de105b35653bc6abf..4984840b9c1f873e4f0283f9aa56578524bc318a" } ,{ "testCaseDescription": "go-method-declarations-delete-replacement-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "replace": [ { "start": [ 5, 30 ], "end": [ 5, 33 ] }, { "start": [ 5, 33 ], "end": [ 5, 39 ] } ] }, "summary": "Replaced the 'Num' identifier with the 'Person' identifier in the '(other Person).Equals(…)' method" }, { "span": { "replace": [ { "start": [ 5, 12 ], "end": [ 5, 15 ] }, { "start": [ 5, 12 ], "end": [ 5, 18 ] } ] }, "summary": "Replaced the 'Num' identifier with the 'Person' identifier in the '(other Person).Equals(…)' method" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 1be6d205..e556c016 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -2,4 +2,4 @@ package main", " ", " func main() {}", " ", "-func (self Num) Equals(other Num) bool {}", "+func (self Person) Equals(other Person) bool {}" ], "gitDir": "test/corpus/repos/go", "shas": "4984840b9c1f873e4f0283f9aa56578524bc318a..5d97f8471206dc97ee31629ea3a5513e44182603" } ,{ "testCaseDescription": "go-method-declarations-delete-insert-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 48 ] } }, "summary": "Deleted the '(other Person).Equals(…)' method" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index e556c016..6aaca9ef 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -2,4 +2,4 @@ package main", " ", " func main() {}", " ", "-func (self Person) Equals(other Person) bool {}", "+" ], "gitDir": "test/corpus/repos/go", "shas": "5d97f8471206dc97ee31629ea3a5513e44182603..e3c6f620532caea3d241a47bbaa17701dba91928" } ,{ "testCaseDescription": "go-method-declarations-teardown-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 13 ] } }, "summary": "Deleted the 'main' module" }, { "span": { "delete": { "start": [ 3, 1 ], "end": [ 3, 15 ] } }, "summary": "Deleted the 'main' function" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 6aaca9ef..e69de29b 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1,5 +0,0 @@", "-package main", "-", "-func main() {}", "-", "-" ], "gitDir": "test/corpus/repos/go", "shas": "e3c6f620532caea3d241a47bbaa17701dba91928..852d29d2b9a695875dd0e15454330bbf7c5e49ff" }]