mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
269 lines
8.3 KiB
JSON
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": "736d6bc8ce63af9896847e05f68b2751778293c2..e81239ad80f0cf5fc027bc0d1e0fb7626a2ee294"
|
|
}
|
|
,{
|
|
"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": "e81239ad80f0cf5fc027bc0d1e0fb7626a2ee294..094ac1af26888f1b27c55c16c24818dec97aa274"
|
|
}
|
|
,{
|
|
"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": "094ac1af26888f1b27c55c16c24818dec97aa274..d4a120484565fe256c6b0819b3eb065578f3ae54"
|
|
}
|
|
,{
|
|
"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": "d4a120484565fe256c6b0819b3eb065578f3ae54..ada1b2cd5c5cad2af431a2e45fbc44793a84a64f"
|
|
}
|
|
,{
|
|
"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": "ada1b2cd5c5cad2af431a2e45fbc44793a84a64f..bba0260d203103c8a8fb0e488dfeeceac8626d8e"
|
|
}
|
|
,{
|
|
"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": "bba0260d203103c8a8fb0e488dfeeceac8626d8e..5d8e0f7de84695c978a9803933c5bacb01da6ba1"
|
|
}]
|