[{ "testCaseDescription": "ruby-module-insert-test", "expectedResult": { "changes": { "module.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 2, 4 ] } }, "summary": "Added the 'Foo' module" } ] }, "errors": {} }, "filePaths": [ "module.rb" ], "patch": [ "diff --git a/module.rb b/module.rb", "index e69de29..85026ed 100644", "--- a/module.rb", "+++ b/module.rb", "@@ -0,0 +1,2 @@", "+module Foo", "+end" ], "gitDir": "test/corpus/repos/ruby", "shas": "5df8bfbe172193e6124da27f457fa6fb19547593..9e3d30cbf214e01bac2e8ced270032fc40117c33" } ,{ "testCaseDescription": "ruby-module-replacement-insert-test", "expectedResult": { "changes": { "module.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 4, 4 ] } }, "summary": "Added the 'Foo' module" }, { "span": { "insert": { "start": [ 5, 1 ], "end": [ 6, 4 ] } }, "summary": "Added the 'Foo' module" } ] }, "errors": {} }, "filePaths": [ "module.rb" ], "patch": [ "diff --git a/module.rb b/module.rb", "index 85026ed..351dcd2 100644", "--- a/module.rb", "+++ b/module.rb", "@@ -1,2 +1,8 @@", " module Foo", "+ def bar", "+ end", "+end", "+module Foo", "+end", "+module Foo", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "9e3d30cbf214e01bac2e8ced270032fc40117c33..070a30dadbd08713621ade900398489f3d5d8d35" } ,{ "testCaseDescription": "ruby-module-delete-insert-test", "expectedResult": { "changes": { "module.rb": [ { "span": { "delete": { "start": [ 2, 3 ], "end": [ 3, 6 ] } }, "summary": "Deleted the 'bar()' method in the Foo module" } ] }, "errors": {} }, "filePaths": [ "module.rb" ], "patch": [ "diff --git a/module.rb b/module.rb", "index 351dcd2..5900129 100644", "--- a/module.rb", "+++ b/module.rb", "@@ -1,6 +1,4 @@", " module Foo", "- def bar", "- end", " end", " module Foo", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "070a30dadbd08713621ade900398489f3d5d8d35..164b8f9d4149fc6c28f330d764d68e2529ddfe7e" } ,{ "testCaseDescription": "ruby-module-replacement-test", "expectedResult": { "changes": { "module.rb": [ { "span": { "insert": { "start": [ 2, 3 ], "end": [ 3, 6 ] } }, "summary": "Added the 'bar()' method in the Foo module" } ] }, "errors": {} }, "filePaths": [ "module.rb" ], "patch": [ "diff --git a/module.rb b/module.rb", "index 5900129..351dcd2 100644", "--- a/module.rb", "+++ b/module.rb", "@@ -1,4 +1,6 @@", " module Foo", "+ def bar", "+ end", " end", " module Foo", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "164b8f9d4149fc6c28f330d764d68e2529ddfe7e..6790c446e68c1186b5bc0256bcb13ea4f8f98dbc" } ,{ "testCaseDescription": "ruby-module-delete-replacement-test", "expectedResult": { "changes": { "module.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 4, 4 ] } }, "summary": "Deleted the 'Foo' module" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 6, 4 ] } }, "summary": "Deleted the 'Foo' module" }, { "span": { "insert": { "start": [ 3, 1 ], "end": [ 6, 4 ] } }, "summary": "Added the 'Foo' module" } ] }, "errors": {} }, "filePaths": [ "module.rb" ], "patch": [ "diff --git a/module.rb b/module.rb", "index 351dcd2..66871d0 100644", "--- a/module.rb", "+++ b/module.rb", "@@ -1,8 +1,6 @@", " module Foo", "- def bar", "- end", "-end", "-module Foo", " end", " module Foo", "+ def bar", "+ end", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "6790c446e68c1186b5bc0256bcb13ea4f8f98dbc..ec4ecafdea519cb0020ed5599ff939570d0f854b" } ,{ "testCaseDescription": "ruby-module-delete-test", "expectedResult": { "changes": { "module.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 2, 4 ] } }, "summary": "Deleted the 'Foo' module" } ] }, "errors": {} }, "filePaths": [ "module.rb" ], "patch": [ "diff --git a/module.rb b/module.rb", "index 66871d0..56f77bb 100644", "--- a/module.rb", "+++ b/module.rb", "@@ -1,6 +1,4 @@", " module Foo", "-end", "-module Foo", " def bar", " end", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "ec4ecafdea519cb0020ed5599ff939570d0f854b..57a8fb4e465c80ab42466968a539a77bf8880f5a" } ,{ "testCaseDescription": "ruby-module-delete-rest-test", "expectedResult": { "changes": { "module.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 4, 4 ] } }, "summary": "Deleted the 'Foo' module" } ] }, "errors": {} }, "filePaths": [ "module.rb" ], "patch": [ "diff --git a/module.rb b/module.rb", "index 56f77bb..e69de29 100644", "--- a/module.rb", "+++ b/module.rb", "@@ -1,4 +0,0 @@", "-module Foo", "- def bar", "- end", "-end" ], "gitDir": "test/corpus/repos/ruby", "shas": "57a8fb4e465c80ab42466968a539a77bf8880f5a..1713f7f3e2aa6a1e643842fde9382ce098c08363" }]