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": "e9e47a7e8dfaea6fade11176891263b27322f29d..d3c71a8b9429b7706728aaf0e2ab22580c5a7409"
|
|
}
|
|
,{
|
|
"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": "d3c71a8b9429b7706728aaf0e2ab22580c5a7409..72ab3af267ac70da88be18c80d66436faa4d4631"
|
|
}
|
|
,{
|
|
"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": "72ab3af267ac70da88be18c80d66436faa4d4631..b4c41867bc41e284d0edc33e675ee3717fb1d913"
|
|
}
|
|
,{
|
|
"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": "b4c41867bc41e284d0edc33e675ee3717fb1d913..45587e828108c8da4b0ed81e4e9eba811537864c"
|
|
}
|
|
,{
|
|
"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": "45587e828108c8da4b0ed81e4e9eba811537864c..2174ca8275e9a78b58f66ad3b64a5cae11f83be0"
|
|
}
|
|
,{
|
|
"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": "2174ca8275e9a78b58f66ad3b64a5cae11f83be0..ded54423d631ab67007dd284c87a8628935009ce"
|
|
}
|
|
,{
|
|
"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": "ded54423d631ab67007dd284c87a8628935009ce..0ea1cbaad545a54267144f11a8d792fca30cf547"
|
|
}]
|