1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00
semantic/test/corpus/diff-summaries/ruby/until.json
2017-01-10 16:58:40 -05:00

443 lines
12 KiB
JSON

[{
"testCaseDescription": "ruby-until-insert-test",
"expectedResult": {
"changes": {
"until.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'foo' until statement"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
15
]
}
},
"summary": "Added the 'done' until statement"
}
]
},
"errors": {}
},
"filePaths": [
"until.rb"
],
"patch": [
"diff --git a/until.rb b/until.rb",
"index e69de29..2785b0d 100644",
"--- a/until.rb",
"+++ b/until.rb",
"@@ -0,0 +1,3 @@",
"+until foo do",
"+end",
"+foo until done"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "8acc6850685b258991defd4452419a4329e6bb56..6e040972728fce0775925cdcea88132ec6f2906a"
}
,{
"testCaseDescription": "ruby-until-replacement-insert-test",
"expectedResult": {
"changes": {
"until.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Added the 'foo' until statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'foo' until statement"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
15
]
}
},
"summary": "Added the 'done' until statement"
}
]
},
"errors": {}
},
"filePaths": [
"until.rb"
],
"patch": [
"diff --git a/until.rb b/until.rb",
"index 2785b0d..7c5868e 100644",
"--- a/until.rb",
"+++ b/until.rb",
"@@ -1,3 +1,9 @@",
"+until foo",
"+ bar",
"+end",
"+until foo do",
"+end",
"+foo until done",
" until foo do",
" end",
" foo until done"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "6e040972728fce0775925cdcea88132ec6f2906a..0552fdc83ab0627771cfe825964e3d9512a4bad9"
}
,{
"testCaseDescription": "ruby-until-delete-insert-test",
"expectedResult": {
"changes": {
"until.rb": [
{
"span": {
"delete": {
"start": [
2,
3
],
"end": [
2,
6
]
}
},
"summary": "Deleted the 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
15
]
}
},
"summary": "Added the 'done' until statement"
}
]
},
"errors": {}
},
"filePaths": [
"until.rb"
],
"patch": [
"diff --git a/until.rb b/until.rb",
"index 7c5868e..c51b0d0 100644",
"--- a/until.rb",
"+++ b/until.rb",
"@@ -1,6 +1,6 @@",
"-until foo",
"- bar",
"+until foo do",
" end",
"+foo until done",
" until foo do",
" end",
" foo until done"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "0552fdc83ab0627771cfe825964e3d9512a4bad9..a2fd9dd8a24da6450768ab821edde189792403be"
}
,{
"testCaseDescription": "ruby-until-replacement-test",
"expectedResult": {
"changes": {
"until.rb": [
{
"span": {
"insert": {
"start": [
2,
3
],
"end": [
2,
6
]
}
},
"summary": "Added the 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
15
]
}
},
"summary": "Deleted the 'done' until statement"
}
]
},
"errors": {}
},
"filePaths": [
"until.rb"
],
"patch": [
"diff --git a/until.rb b/until.rb",
"index c51b0d0..7c5868e 100644",
"--- a/until.rb",
"+++ b/until.rb",
"@@ -1,6 +1,6 @@",
"-until foo do",
"+until foo",
"+ bar",
" end",
"-foo until done",
" until foo do",
" end",
" foo until done"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "a2fd9dd8a24da6450768ab821edde189792403be..87f0e7e416c9dcbe5ade1fa998eba1d9bb86bd98"
}
,{
"testCaseDescription": "ruby-until-delete-replacement-test",
"expectedResult": {
"changes": {
"until.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'foo' until statement"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'foo' until statement"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
15
]
}
},
"summary": "Deleted the 'done' until statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
6,
4
]
}
},
"summary": "Added the 'foo' until statement"
}
]
},
"errors": {}
},
"filePaths": [
"until.rb"
],
"patch": [
"diff --git a/until.rb b/until.rb",
"index 7c5868e..c543483 100644",
"--- a/until.rb",
"+++ b/until.rb",
"@@ -1,9 +1,6 @@",
"-until foo",
"- bar",
"-end",
" until foo do",
" end",
" foo until done",
"-until foo do",
"+until foo",
"+ bar",
" end",
"-foo until done"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "87f0e7e416c9dcbe5ade1fa998eba1d9bb86bd98..485a2f7d57c2de73d3bd33b1127c100467e34127"
}
,{
"testCaseDescription": "ruby-until-delete-test",
"expectedResult": {
"changes": {
"until.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'foo' until statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
15
]
}
},
"summary": "Deleted the 'done' until statement"
}
]
},
"errors": {}
},
"filePaths": [
"until.rb"
],
"patch": [
"diff --git a/until.rb b/until.rb",
"index c543483..347b5ff 100644",
"--- a/until.rb",
"+++ b/until.rb",
"@@ -1,6 +1,3 @@",
"-until foo do",
"-end",
"-foo until done",
" until foo",
" bar",
" end"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "485a2f7d57c2de73d3bd33b1127c100467e34127..d36a15ff9369b9e46d15de8a09230740ed2a7ade"
}
,{
"testCaseDescription": "ruby-until-delete-rest-test",
"expectedResult": {
"changes": {
"until.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'foo' until statement"
}
]
},
"errors": {}
},
"filePaths": [
"until.rb"
],
"patch": [
"diff --git a/until.rb b/until.rb",
"index 347b5ff..e69de29 100644",
"--- a/until.rb",
"+++ b/until.rb",
"@@ -1,3 +0,0 @@",
"-until foo",
"- bar",
"-end"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "d36a15ff9369b9e46d15de8a09230740ed2a7ade..49c9791cbe22997497374bceda86d9356c1456c8"
}]