1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/ruby/until.json
2016-11-03 16:02:56 -07: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": "527524ae442ea64d2a0f8d057a8f3f29091b94b7..7195bbfd7970acfb3f61a3a04144c6ed735d95f8"
}
,{
"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": "7195bbfd7970acfb3f61a3a04144c6ed735d95f8..a9c0d66a0ce29c04ddfdb3eeb9fd5133df7ad7c4"
}
,{
"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": "a9c0d66a0ce29c04ddfdb3eeb9fd5133df7ad7c4..5e66fb4320749066c271c6ee5922a6662f0f66fc"
}
,{
"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": "5e66fb4320749066c271c6ee5922a6662f0f66fc..aee5892096fa1235af544e9f239aea971a299847"
}
,{
"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": "aee5892096fa1235af544e9f239aea971a299847..9fc09b78cdd42bc642860cebd38a3d5baff394b4"
}
,{
"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": "9fc09b78cdd42bc642860cebd38a3d5baff394b4..f878f5c2c585d3cab149cd4d3402426421383914"
}
,{
"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": "f878f5c2c585d3cab149cd4d3402426421383914..9a18b4c80b2e7e2bdca5da3ea6388d1cb4727f8f"
}]