mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +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": "01b13564c812c309867f8f8201bbbebe8f878f4d..b7dd051c8d7021a24eef603c87d14027d19ba043"
|
|
}
|
|
,{
|
|
"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": "b7dd051c8d7021a24eef603c87d14027d19ba043..75a68dbeeb7a428a3f86b783db24c1cf5e3c4fc1"
|
|
}
|
|
,{
|
|
"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": "75a68dbeeb7a428a3f86b783db24c1cf5e3c4fc1..77bd11b3d718b733c4aa6b58fe27bd5ca8074e49"
|
|
}
|
|
,{
|
|
"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": "77bd11b3d718b733c4aa6b58fe27bd5ca8074e49..ecf42398fcfb1b45807c155dcf231429ce55d335"
|
|
}
|
|
,{
|
|
"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": "ecf42398fcfb1b45807c155dcf231429ce55d335..6289c01f7f9b0dead7f8b63f9e86498811e843a1"
|
|
}
|
|
,{
|
|
"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": "6289c01f7f9b0dead7f8b63f9e86498811e843a1..5458878541d4dbd326730893f8986cee3285d576"
|
|
}]
|