mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
324 lines
8.9 KiB
JSON
324 lines
8.9 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-yield-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' yield statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/yield.rb b/yield.rb",
|
|
"index e69de29..a1e1b84 100644",
|
|
"--- a/yield.rb",
|
|
"+++ b/yield.rb",
|
|
"@@ -0,0 +1 @@",
|
|
"+yield foo"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "463f846069b8442a61b8d579b56aadeca46c0973..aa0980c339ac44a7f56448bc2081966268eea653"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a yield statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' yield statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/yield.rb b/yield.rb",
|
|
"index a1e1b84..2f5c2c5 100644",
|
|
"--- a/yield.rb",
|
|
"+++ b/yield.rb",
|
|
"@@ -1 +1,3 @@",
|
|
"+yield",
|
|
"+yield foo",
|
|
" yield foo"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "aa0980c339ac44a7f56448bc2081966268eea653..7f9ad3ddc292145f3b3b1199ef012367179084c9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/yield.rb b/yield.rb",
|
|
"index 2f5c2c5..8e68f90 100644",
|
|
"--- a/yield.rb",
|
|
"+++ b/yield.rb",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-yield",
|
|
"+yield foo",
|
|
" yield foo",
|
|
" yield foo"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "7f9ad3ddc292145f3b3b1199ef012367179084c9..8f1abb4e3ab26c99e602c28d9740606e5da6ad99"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/yield.rb b/yield.rb",
|
|
"index 8e68f90..2f5c2c5 100644",
|
|
"--- a/yield.rb",
|
|
"+++ b/yield.rb",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-yield foo",
|
|
"+yield",
|
|
" yield foo",
|
|
" yield foo"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "8f1abb4e3ab26c99e602c28d9740606e5da6ad99..5ea6346961c19360625bdffbe931ace681aca320"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a yield statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' yield statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a yield statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/yield.rb b/yield.rb",
|
|
"index 2f5c2c5..324b0fe 100644",
|
|
"--- a/yield.rb",
|
|
"+++ b/yield.rb",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-yield",
|
|
"-yield foo",
|
|
" yield foo",
|
|
"+yield"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "5ea6346961c19360625bdffbe931ace681aca320..2fb7a44b1cab55b158d939ec5650711fd4a8208c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' yield statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/yield.rb b/yield.rb",
|
|
"index 324b0fe..fcd1a85 100644",
|
|
"--- a/yield.rb",
|
|
"+++ b/yield.rb",
|
|
"@@ -1,2 +1 @@",
|
|
"-yield foo",
|
|
" yield"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "2fb7a44b1cab55b158d939ec5650711fd4a8208c..b797b16659e3bc9e3388a5edcc4685ed2bc81aee"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-yield-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"yield.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a yield statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"yield.rb"
|
|
],
|
|
"patch": [
|
|
"diff --git a/yield.rb b/yield.rb",
|
|
"index fcd1a85..e69de29 100644",
|
|
"--- a/yield.rb",
|
|
"+++ b/yield.rb",
|
|
"@@ -1 +0,0 @@",
|
|
"-yield"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "b797b16659e3bc9e3388a5edcc4685ed2bc81aee..75359fce842411630cf517ec7d9eedbe79f32f44"
|
|
}]
|