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/when.json
2016-11-03 13:11:02 -07:00

187 lines
5.2 KiB
JSON

[{
"testCaseDescription": "ruby-when-setup-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'foo' case statement"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "c1aa0372df373a9df1f3c5c38088bacc3b638fbb",
"gitDir": "test/corpus/repos/ruby",
"sha2": "5fb46e0291f509dd6478ec4a95919740260e2682"
}
,{
"testCaseDescription": "ruby-when-insert-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Added the 'bar' when comparison in the 'foo' case statement"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "5fb46e0291f509dd6478ec4a95919740260e2682",
"gitDir": "test/corpus/repos/ruby",
"sha2": "998ea776459e452dd5056605237ceb22c36846b1"
}
,{
"testCaseDescription": "ruby-when-replacement-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"insert": {
"start": [
3,
3
],
"end": [
3,
6
]
}
},
"summary": "Added the 'baz' identifier in a when comparison"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "998ea776459e452dd5056605237ceb22c36846b1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9a49ec9031437eae17e82bf50a9ebe7f594585d5"
}
,{
"testCaseDescription": "ruby-when-delete-replacement-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"delete": {
"start": [
3,
3
],
"end": [
3,
6
]
}
},
"summary": "Deleted the 'baz' identifier in a when comparison"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "9a49ec9031437eae17e82bf50a9ebe7f594585d5",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e377ba38188bc00279e3e687d0ee767aedcfb25d"
}
,{
"testCaseDescription": "ruby-when-delete-insert-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Deleted the 'bar' when comparison in the 'foo' case statement"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "e377ba38188bc00279e3e687d0ee767aedcfb25d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "50d8aab92b52837ff04e6f7c22f4f2e8da553cd1"
}
,{
"testCaseDescription": "ruby-when-teardown-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'foo' case statement"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "50d8aab92b52837ff04e6f7c22f4f2e8da553cd1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "4271016dbb96667635e707fced1ae9261e704536"
}]