1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/test/corpus/diff-summaries/ruby/method-declaration-params.json
2017-01-10 16:58:40 -05:00

269 lines
8.3 KiB
JSON

[{
"testCaseDescription": "ruby-method-declaration-params-setup-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'foo()' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"patch": [
"diff --git a/method-declaration-params.rb b/method-declaration-params.rb",
"index e69de29..ff7bbbe 100644",
"--- a/method-declaration-params.rb",
"+++ b/method-declaration-params.rb",
"@@ -0,0 +1,2 @@",
"+def foo",
"+end"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "af1d10926db4f35ee0fe5003c21bb97fc06c6c1f..611db308d06c0cb292ee3f0c92848184c65940e8"
}
,{
"testCaseDescription": "ruby-method-declaration-params-insert-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"insert": {
"start": [
1,
9
],
"end": [
1,
10
]
}
},
"summary": "Added the 'a' identifier in the 'foo(a)' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"patch": [
"diff --git a/method-declaration-params.rb b/method-declaration-params.rb",
"index ff7bbbe..47fdd58 100644",
"--- a/method-declaration-params.rb",
"+++ b/method-declaration-params.rb",
"@@ -1,2 +1,2 @@",
"-def foo",
"+def foo(a)",
" end"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "611db308d06c0cb292ee3f0c92848184c65940e8..42e3ebe54b6bd0f9bf11c540e659ea927c7eda6c"
}
,{
"testCaseDescription": "ruby-method-declaration-params-replacement-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"insert": {
"start": [
1,
12
],
"end": [
1,
13
]
}
},
"summary": "Added the 'b' identifier in the 'foo(a, b, c)' method"
},
{
"span": {
"insert": {
"start": [
1,
15
],
"end": [
1,
16
]
}
},
"summary": "Added the 'c' identifier in the 'foo(a, b, c)' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"patch": [
"diff --git a/method-declaration-params.rb b/method-declaration-params.rb",
"index 47fdd58..b9f1ab5 100644",
"--- a/method-declaration-params.rb",
"+++ b/method-declaration-params.rb",
"@@ -1,2 +1,2 @@",
"-def foo(a)",
"+def foo(a, b, c)",
" end"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "42e3ebe54b6bd0f9bf11c540e659ea927c7eda6c..71a129540563133b74145da767611cf9602b5109"
}
,{
"testCaseDescription": "ruby-method-declaration-params-delete-replacement-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"delete": {
"start": [
1,
12
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'b' identifier in the 'foo(a)' method"
},
{
"span": {
"delete": {
"start": [
1,
15
],
"end": [
1,
16
]
}
},
"summary": "Deleted the 'c' identifier in the 'foo(a)' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"patch": [
"diff --git a/method-declaration-params.rb b/method-declaration-params.rb",
"index b9f1ab5..47fdd58 100644",
"--- a/method-declaration-params.rb",
"+++ b/method-declaration-params.rb",
"@@ -1,2 +1,2 @@",
"-def foo(a, b, c)",
"+def foo(a)",
" end"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "71a129540563133b74145da767611cf9602b5109..f5fb44656a1cca25948b814af5c0730e9405d605"
}
,{
"testCaseDescription": "ruby-method-declaration-params-delete-insert-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"delete": {
"start": [
1,
9
],
"end": [
1,
10
]
}
},
"summary": "Deleted the 'a' identifier in the 'foo()' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"patch": [
"diff --git a/method-declaration-params.rb b/method-declaration-params.rb",
"index 47fdd58..ff7bbbe 100644",
"--- a/method-declaration-params.rb",
"+++ b/method-declaration-params.rb",
"@@ -1,2 +1,2 @@",
"-def foo(a)",
"+def foo",
" end"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "f5fb44656a1cca25948b814af5c0730e9405d605..4ab5f12c25811f6c64eab028858587268bb8017f"
}
,{
"testCaseDescription": "ruby-method-declaration-params-teardown-test",
"expectedResult": {
"changes": {
"method-declaration-params.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'foo()' method"
}
]
},
"errors": {}
},
"filePaths": [
"method-declaration-params.rb"
],
"patch": [
"diff --git a/method-declaration-params.rb b/method-declaration-params.rb",
"index ff7bbbe..e69de29 100644",
"--- a/method-declaration-params.rb",
"+++ b/method-declaration-params.rb",
"@@ -1,2 +0,0 @@",
"-def foo",
"-end"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "4ab5f12c25811f6c64eab028858587268bb8017f..505976fd1d7aef853d3614703f993daa63e17e12"
}]