mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
336 lines
11 KiB
JSON
336 lines
11 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-method-declaration-keyword-param-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration-keyword-param.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo()' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration-keyword-param.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/method-declaration-keyword-param.rb b/method-declaration-keyword-param.rb",
|
|
"index e69de29..439647e 100644",
|
|
"--- a/method-declaration-keyword-param.rb",
|
|
"+++ b/method-declaration-keyword-param.rb",
|
|
"@@ -0,0 +1,2 @@",
|
|
"+def foo()",
|
|
"+end"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "f3e88d78204efa57ab931973735fdd5123e7f8bb..e231bdf5449494c34722aa886f0d61e641124c04"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-keyword-param-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration-keyword-param.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo(name: nil)' method"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo()' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration-keyword-param.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/method-declaration-keyword-param.rb b/method-declaration-keyword-param.rb",
|
|
"index 439647e..758e8ad 100644",
|
|
"--- a/method-declaration-keyword-param.rb",
|
|
"+++ b/method-declaration-keyword-param.rb",
|
|
"@@ -1,2 +1,6 @@",
|
|
"+def foo(name: nil)",
|
|
"+end",
|
|
"+def foo()",
|
|
"+end",
|
|
" def foo()",
|
|
" end"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "e231bdf5449494c34722aa886f0d61e641124c04..f8f988f7f6bf04ee478b3ce94741cd697cf36cae"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-keyword-param-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration-keyword-param.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'name: nil' parameter in the 'foo()' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration-keyword-param.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/method-declaration-keyword-param.rb b/method-declaration-keyword-param.rb",
|
|
"index 758e8ad..e856a7a 100644",
|
|
"--- a/method-declaration-keyword-param.rb",
|
|
"+++ b/method-declaration-keyword-param.rb",
|
|
"@@ -1,4 +1,4 @@",
|
|
"-def foo(name: nil)",
|
|
"+def foo()",
|
|
" end",
|
|
" def foo()",
|
|
" end"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "f8f988f7f6bf04ee478b3ce94741cd697cf36cae..a6d8c96342090f041ac4acbc53fffcf79928aa13"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-keyword-param-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration-keyword-param.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
18
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'name: nil' parameter in the 'foo(name: nil)' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration-keyword-param.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/method-declaration-keyword-param.rb b/method-declaration-keyword-param.rb",
|
|
"index e856a7a..758e8ad 100644",
|
|
"--- a/method-declaration-keyword-param.rb",
|
|
"+++ b/method-declaration-keyword-param.rb",
|
|
"@@ -1,4 +1,4 @@",
|
|
"-def foo()",
|
|
"+def foo(name: nil)",
|
|
" end",
|
|
" def foo()",
|
|
" end"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "a6d8c96342090f041ac4acbc53fffcf79928aa13..3e3afcadec1e295d4ea54f21e81fbb354a747d97"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-keyword-param-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration-keyword-param.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo(name: nil)' method"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo()' method"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo(name: nil)' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration-keyword-param.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/method-declaration-keyword-param.rb b/method-declaration-keyword-param.rb",
|
|
"index 758e8ad..2edfe49 100644",
|
|
"--- a/method-declaration-keyword-param.rb",
|
|
"+++ b/method-declaration-keyword-param.rb",
|
|
"@@ -1,6 +1,4 @@",
|
|
"-def foo(name: nil)",
|
|
"-end",
|
|
" def foo()",
|
|
" end",
|
|
"-def foo()",
|
|
"+def foo(name: nil)",
|
|
" end"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "3e3afcadec1e295d4ea54f21e81fbb354a747d97..a9531e67bca8aa6c9a27e03bd0f92b036ce51a5d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-keyword-param-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration-keyword-param.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo()' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration-keyword-param.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/method-declaration-keyword-param.rb b/method-declaration-keyword-param.rb",
|
|
"index 2edfe49..ba716d6 100644",
|
|
"--- a/method-declaration-keyword-param.rb",
|
|
"+++ b/method-declaration-keyword-param.rb",
|
|
"@@ -1,4 +1,2 @@",
|
|
"-def foo()",
|
|
"-end",
|
|
" def foo(name: nil)",
|
|
" end"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "a9531e67bca8aa6c9a27e03bd0f92b036ce51a5d..65f70098f0e1086cb5b46c794695b4be5b760ae2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-declaration-keyword-param-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-declaration-keyword-param.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo(name: nil)' method"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-declaration-keyword-param.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/method-declaration-keyword-param.rb b/method-declaration-keyword-param.rb",
|
|
"index ba716d6..e69de29 100644",
|
|
"--- a/method-declaration-keyword-param.rb",
|
|
"+++ b/method-declaration-keyword-param.rb",
|
|
"@@ -1,2 +0,0 @@",
|
|
"-def foo(name: nil)",
|
|
"-end"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "65f70098f0e1086cb5b46c794695b4be5b760ae2..8a6e7c324fb948068f1b493bde7223d8bf8b65ca"
|
|
}]
|