1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 16:33:03 +03:00
semantic/test/corpus/diff-summaries/ruby/yield.json

324 lines
8.9 KiB
JSON
Raw Normal View History

2016-10-26 20:27:38 +03:00
[{
"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"
],
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "463f846069b8442a61b8d579b56aadeca46c0973..aa0980c339ac44a7f56448bc2081966268eea653"
2016-10-26 20:27:38 +03:00
}
,{
"testCaseDescription": "ruby-yield-replacement-insert-test",
"expectedResult": {
"changes": {
"yield.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
2016-12-06 02:56:18 +03:00
"summary": "Added a yield statement"
2016-10-26 20:27:38 +03:00
},
{
"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"
],
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "aa0980c339ac44a7f56448bc2081966268eea653..7f9ad3ddc292145f3b3b1199ef012367179084c9"
2016-10-26 20:27:38 +03:00
}
,{
"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"
],
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "7f9ad3ddc292145f3b3b1199ef012367179084c9..8f1abb4e3ab26c99e602c28d9740606e5da6ad99"
2016-10-26 20:27:38 +03:00
}
,{
"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"
],
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "8f1abb4e3ab26c99e602c28d9740606e5da6ad99..5ea6346961c19360625bdffbe931ace681aca320"
2016-10-26 20:27:38 +03:00
}
,{
"testCaseDescription": "ruby-yield-delete-replacement-test",
"expectedResult": {
"changes": {
"yield.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
2016-12-06 02:56:18 +03:00
"summary": "Deleted a yield statement"
2016-10-26 20:27:38 +03:00
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
10
]
}
},
"summary": "Deleted the 'foo' yield statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
2016-12-06 02:56:18 +03:00
"summary": "Added a yield statement"
2016-10-26 20:27:38 +03:00
}
]
},
"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"
],
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "5ea6346961c19360625bdffbe931ace681aca320..2fb7a44b1cab55b158d939ec5650711fd4a8208c"
2016-10-26 20:27:38 +03:00
}
,{
"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"
],
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "2fb7a44b1cab55b158d939ec5650711fd4a8208c..b797b16659e3bc9e3388a5edcc4685ed2bc81aee"
2016-10-26 20:27:38 +03:00
}
,{
"testCaseDescription": "ruby-yield-delete-rest-test",
"expectedResult": {
"changes": {
"yield.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
2016-12-06 02:56:18 +03:00
"summary": "Deleted a yield statement"
2016-10-26 20:27:38 +03:00
}
]
},
"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"
],
2016-10-26 20:27:38 +03:00
"gitDir": "test/corpus/repos/ruby",
2017-01-11 00:58:40 +03:00
"shas": "b797b16659e3bc9e3388a5edcc4685ed2bc81aee..75359fce842411630cf517ec7d9eedbe79f32f44"
2016-10-26 20:27:38 +03:00
}]