[{ "testCaseDescription": "go-method-declarations-insert-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "insert": { "start": [ 1, 7 ], "end": [ 1, 11 ] } }, "summary": "Added the 'self' identifier" }, { "span": { "insert": { "start": [ 1, 12 ], "end": [ 1, 18 ] } }, "summary": "Added the 'Person' identifier" }, { "span": { "insert": { "start": [ 1, 20 ], "end": [ 1, 26 ] } }, "summary": "Added the 'Equals' identifier" }, { "span": { "insert": { "start": [ 1, 27 ], "end": [ 1, 32 ] } }, "summary": "Added the 'other' identifier" }, { "span": { "insert": { "start": [ 1, 33 ], "end": [ 1, 39 ] } }, "summary": "Added the 'Person' identifier" }, { "span": { "insert": { "start": [ 1, 41 ], "end": [ 1, 45 ] } }, "summary": "Added the 'bool' identifier" }, { "span": { "insert": { "start": [ 1, 46 ], "end": [ 1, 48 ] } }, "summary": "Added the '{}' block" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index e69de29..4431052 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -0,0 +1 @@", "+func (self Person) Equals(other Person) bool {}" ], "gitDir": "test/corpus/repos/go", "shas": "3c45cc8ca3df829def1c771c316976799dea5d60..f6b376cd61bc96149e743eb764be573552180ff1" } ,{ "testCaseDescription": "go-method-declarations-replacement-insert-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "insert": { "start": [ 1, 7 ], "end": [ 1, 11 ] } }, "summary": "Added the 'self' identifier" }, { "span": { "insert": { "start": [ 1, 12 ], "end": [ 1, 15 ] } }, "summary": "Added the 'Num' identifier" }, { "span": { "insert": { "start": [ 1, 17 ], "end": [ 1, 23 ] } }, "summary": "Added the 'Equals' identifier" }, { "span": { "insert": { "start": [ 1, 24 ], "end": [ 1, 29 ] } }, "summary": "Added the 'other' identifier" }, { "span": { "insert": { "start": [ 1, 30 ], "end": [ 1, 33 ] } }, "summary": "Added the 'Num' identifier" }, { "span": { "insert": { "start": [ 1, 35 ], "end": [ 1, 39 ] } }, "summary": "Added the 'bool' identifier" }, { "span": { "insert": { "start": [ 1, 40 ], "end": [ 1, 42 ] } }, "summary": "Added the '{}' block" }, { "span": { "insert": { "start": [ 2, 7 ], "end": [ 2, 11 ] } }, "summary": "Added the 'self' identifier" }, { "span": { "insert": { "start": [ 2, 12 ], "end": [ 2, 18 ] } }, "summary": "Added the 'Person' identifier" }, { "span": { "insert": { "start": [ 2, 20 ], "end": [ 2, 26 ] } }, "summary": "Added the 'Equals' identifier" }, { "span": { "insert": { "start": [ 2, 27 ], "end": [ 2, 32 ] } }, "summary": "Added the 'other' identifier" }, { "span": { "insert": { "start": [ 2, 33 ], "end": [ 2, 39 ] } }, "summary": "Added the 'Person' identifier" }, { "span": { "insert": { "start": [ 2, 41 ], "end": [ 2, 45 ] } }, "summary": "Added the 'bool' identifier" }, { "span": { "insert": { "start": [ 2, 46 ], "end": [ 2, 48 ] } }, "summary": "Added the '{}' block" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 4431052..adbefab 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1 +1,3 @@", "+func (self Num) Equals(other Num) bool {}", "+func (self Person) Equals(other Person) bool {}", " func (self Person) Equals(other Person) bool {}" ], "gitDir": "test/corpus/repos/go", "shas": "f6b376cd61bc96149e743eb764be573552180ff1..c95268d11096ac1e69ed22ae03443cf7fd418cd7" } ,{ "testCaseDescription": "go-method-declarations-delete-insert-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "replace": [ { "start": [ 1, 12 ], "end": [ 1, 15 ] }, { "start": [ 1, 12 ], "end": [ 1, 18 ] } ] }, "summary": "Replaced the 'Num' identifier with the 'Person' identifier" }, { "span": { "replace": [ { "start": [ 1, 30 ], "end": [ 1, 33 ] }, { "start": [ 1, 33 ], "end": [ 1, 39 ] } ] }, "summary": "Replaced the 'Num' identifier with the 'Person' identifier" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index adbefab..88c36a5 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1,3 +1,3 @@", "-func (self Num) Equals(other Num) bool {}", "+func (self Person) Equals(other Person) bool {}", " func (self Person) Equals(other Person) bool {}", " func (self Person) Equals(other Person) bool {}" ], "gitDir": "test/corpus/repos/go", "shas": "c95268d11096ac1e69ed22ae03443cf7fd418cd7..068fa34411d8ecccc12a375547268a31a445b602" } ,{ "testCaseDescription": "go-method-declarations-replacement-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "replace": [ { "start": [ 1, 12 ], "end": [ 1, 18 ] }, { "start": [ 1, 12 ], "end": [ 1, 15 ] } ] }, "summary": "Replaced the 'Person' identifier with the 'Num' identifier" }, { "span": { "replace": [ { "start": [ 1, 33 ], "end": [ 1, 39 ] }, { "start": [ 1, 30 ], "end": [ 1, 33 ] } ] }, "summary": "Replaced the 'Person' identifier with the 'Num' identifier" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 88c36a5..adbefab 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1,3 +1,3 @@", "-func (self Person) Equals(other Person) bool {}", "+func (self Num) Equals(other Num) bool {}", " func (self Person) Equals(other Person) bool {}", " func (self Person) Equals(other Person) bool {}" ], "gitDir": "test/corpus/repos/go", "shas": "068fa34411d8ecccc12a375547268a31a445b602..09f1d6b3d664b5a6386df45d5daad5aea14ebaff" } ,{ "testCaseDescription": "go-method-declarations-delete-replacement-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "delete": { "start": [ 1, 7 ], "end": [ 1, 11 ] } }, "summary": "Deleted the 'self' identifier" }, { "span": { "delete": { "start": [ 1, 12 ], "end": [ 1, 15 ] } }, "summary": "Deleted the 'Num' identifier" }, { "span": { "delete": { "start": [ 1, 17 ], "end": [ 1, 23 ] } }, "summary": "Deleted the 'Equals' identifier" }, { "span": { "delete": { "start": [ 1, 24 ], "end": [ 1, 29 ] } }, "summary": "Deleted the 'other' identifier" }, { "span": { "delete": { "start": [ 1, 30 ], "end": [ 1, 33 ] } }, "summary": "Deleted the 'Num' identifier" }, { "span": { "delete": { "start": [ 1, 35 ], "end": [ 1, 39 ] } }, "summary": "Deleted the 'bool' identifier" }, { "span": { "delete": { "start": [ 1, 40 ], "end": [ 1, 42 ] } }, "summary": "Deleted the '{}' block" }, { "span": { "delete": { "start": [ 2, 7 ], "end": [ 2, 11 ] } }, "summary": "Deleted the 'self' identifier" }, { "span": { "delete": { "start": [ 2, 12 ], "end": [ 2, 18 ] } }, "summary": "Deleted the 'Person' identifier" }, { "span": { "delete": { "start": [ 2, 20 ], "end": [ 2, 26 ] } }, "summary": "Deleted the 'Equals' identifier" }, { "span": { "delete": { "start": [ 2, 27 ], "end": [ 2, 32 ] } }, "summary": "Deleted the 'other' identifier" }, { "span": { "delete": { "start": [ 2, 33 ], "end": [ 2, 39 ] } }, "summary": "Deleted the 'Person' identifier" }, { "span": { "delete": { "start": [ 2, 41 ], "end": [ 2, 45 ] } }, "summary": "Deleted the 'bool' identifier" }, { "span": { "delete": { "start": [ 2, 46 ], "end": [ 2, 48 ] } }, "summary": "Deleted the '{}' block" }, { "span": { "insert": { "start": [ 2, 7 ], "end": [ 2, 11 ] } }, "summary": "Added the 'self' identifier" }, { "span": { "insert": { "start": [ 2, 12 ], "end": [ 2, 15 ] } }, "summary": "Added the 'Num' identifier" }, { "span": { "insert": { "start": [ 2, 17 ], "end": [ 2, 23 ] } }, "summary": "Added the 'Equals' identifier" }, { "span": { "insert": { "start": [ 2, 24 ], "end": [ 2, 29 ] } }, "summary": "Added the 'other' identifier" }, { "span": { "insert": { "start": [ 2, 30 ], "end": [ 2, 33 ] } }, "summary": "Added the 'Num' identifier" }, { "span": { "insert": { "start": [ 2, 35 ], "end": [ 2, 39 ] } }, "summary": "Added the 'bool' identifier" }, { "span": { "insert": { "start": [ 2, 40 ], "end": [ 2, 42 ] } }, "summary": "Added the '{}' block" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index adbefab..9168669 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1,3 +1,2 @@", "-func (self Num) Equals(other Num) bool {}", "-func (self Person) Equals(other Person) bool {}", " func (self Person) Equals(other Person) bool {}", "+func (self Num) Equals(other Num) bool {}" ], "gitDir": "test/corpus/repos/go", "shas": "09f1d6b3d664b5a6386df45d5daad5aea14ebaff..19a6ed48f9b65fa93c0eb6e9103962dbced96078" } ,{ "testCaseDescription": "go-method-declarations-delete-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "delete": { "start": [ 1, 7 ], "end": [ 1, 11 ] } }, "summary": "Deleted the 'self' identifier" }, { "span": { "delete": { "start": [ 1, 12 ], "end": [ 1, 18 ] } }, "summary": "Deleted the 'Person' identifier" }, { "span": { "delete": { "start": [ 1, 20 ], "end": [ 1, 26 ] } }, "summary": "Deleted the 'Equals' identifier" }, { "span": { "delete": { "start": [ 1, 27 ], "end": [ 1, 32 ] } }, "summary": "Deleted the 'other' identifier" }, { "span": { "delete": { "start": [ 1, 33 ], "end": [ 1, 39 ] } }, "summary": "Deleted the 'Person' identifier" }, { "span": { "delete": { "start": [ 1, 41 ], "end": [ 1, 45 ] } }, "summary": "Deleted the 'bool' identifier" }, { "span": { "delete": { "start": [ 1, 46 ], "end": [ 1, 48 ] } }, "summary": "Deleted the '{}' block" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 9168669..64a70fa 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1,2 +1 @@", "-func (self Person) Equals(other Person) bool {}", " func (self Num) Equals(other Num) bool {}" ], "gitDir": "test/corpus/repos/go", "shas": "19a6ed48f9b65fa93c0eb6e9103962dbced96078..e5201ad2318284420c810c16d67bf3801a4d9833" } ,{ "testCaseDescription": "go-method-declarations-delete-rest-test", "expectedResult": { "changes": { "method-declarations.go": [ { "span": { "delete": { "start": [ 1, 7 ], "end": [ 1, 11 ] } }, "summary": "Deleted the 'self' identifier" }, { "span": { "delete": { "start": [ 1, 12 ], "end": [ 1, 15 ] } }, "summary": "Deleted the 'Num' identifier" }, { "span": { "delete": { "start": [ 1, 17 ], "end": [ 1, 23 ] } }, "summary": "Deleted the 'Equals' identifier" }, { "span": { "delete": { "start": [ 1, 24 ], "end": [ 1, 29 ] } }, "summary": "Deleted the 'other' identifier" }, { "span": { "delete": { "start": [ 1, 30 ], "end": [ 1, 33 ] } }, "summary": "Deleted the 'Num' identifier" }, { "span": { "delete": { "start": [ 1, 35 ], "end": [ 1, 39 ] } }, "summary": "Deleted the 'bool' identifier" }, { "span": { "delete": { "start": [ 1, 40 ], "end": [ 1, 42 ] } }, "summary": "Deleted the '{}' block" } ] }, "errors": {} }, "filePaths": [ "method-declarations.go" ], "patch": [ "diff --git a/method-declarations.go b/method-declarations.go", "index 64a70fa..e69de29 100644", "--- a/method-declarations.go", "+++ b/method-declarations.go", "@@ -1 +0,0 @@", "-func (self Num) Equals(other Num) bool {}" ], "gitDir": "test/corpus/repos/go", "shas": "e5201ad2318284420c810c16d67bf3801a4d9833..cd2d4264fa1687a5a6b4368aa3d4d4e7be7c87a1" }]