1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/begin.json
2016-11-03 14:27:47 -07:00

187 lines
5.2 KiB
JSON

[{
"testCaseDescription": "ruby-begin-setup-test",
"expectedResult": {
"changes": {
"begin.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'foo()' method"
}
]
},
"errors": {}
},
"filePaths": [
"begin.rb"
],
"sha1": "03c9f263611a1073e5d99cfe3750c34bfd34ca72",
"gitDir": "test/corpus/repos/ruby",
"sha2": "71c803a5fcf8ba2ae10f24d37aa2ee026dbd74c6"
}
,{
"testCaseDescription": "ruby-begin-insert-test",
"expectedResult": {
"changes": {
"begin.rb": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
3,
4
]
}
},
"summary": "Added a begin statement in the foo() method"
}
]
},
"errors": {}
},
"filePaths": [
"begin.rb"
],
"sha1": "71c803a5fcf8ba2ae10f24d37aa2ee026dbd74c6",
"gitDir": "test/corpus/repos/ruby",
"sha2": "03ad6520b0ee07f99a2462a3352de193158072a2"
}
,{
"testCaseDescription": "ruby-begin-replacement-test",
"expectedResult": {
"changes": {
"begin.rb": [
{
"span": {
"insert": {
"start": [
3,
3
],
"end": [
3,
12
]
}
},
"summary": "Added the 'puts('hi')' function call in a begin statement of the 'foo()' method"
}
]
},
"errors": {}
},
"filePaths": [
"begin.rb"
],
"sha1": "03ad6520b0ee07f99a2462a3352de193158072a2",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3dbbe3b3a1688734d517256a99ebd6e20ce1afd1"
}
,{
"testCaseDescription": "ruby-begin-delete-replacement-test",
"expectedResult": {
"changes": {
"begin.rb": [
{
"span": {
"delete": {
"start": [
3,
3
],
"end": [
3,
12
]
}
},
"summary": "Deleted the 'puts('hi')' function call in a begin statement of the 'foo()' method"
}
]
},
"errors": {}
},
"filePaths": [
"begin.rb"
],
"sha1": "3dbbe3b3a1688734d517256a99ebd6e20ce1afd1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "00dd270fd0b0c958bc2d00860c2eae8128ad14c7"
}
,{
"testCaseDescription": "ruby-begin-delete-insert-test",
"expectedResult": {
"changes": {
"begin.rb": [
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted a begin statement in the foo() method"
}
]
},
"errors": {}
},
"filePaths": [
"begin.rb"
],
"sha1": "00dd270fd0b0c958bc2d00860c2eae8128ad14c7",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f15dcec33c1402a158c0f63486d7c2dd77adc11d"
}
,{
"testCaseDescription": "ruby-begin-teardown-test",
"expectedResult": {
"changes": {
"begin.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'foo()' method"
}
]
},
"errors": {}
},
"filePaths": [
"begin.rb"
],
"sha1": "f15dcec33c1402a158c0f63486d7c2dd77adc11d",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d17161b34383c7680aadb5b411bc13814e53148d"
}]