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/elsif.json

187 lines
5.2 KiB
JSON

[{
"testCaseDescription": "ruby-elsif-setup-test",
"expectedResult": {
"changes": {
"elsif.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Added the 'bar' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"elsif.rb"
],
"sha1": "83fca8ebbbdbf9494197148765e4f21bd2da46f0",
"gitDir": "test/corpus/repos/ruby",
"sha2": "d86011611e0415521179b53d9cb20fb3cdf8fafa"
}
,{
"testCaseDescription": "ruby-elsif-insert-test",
"expectedResult": {
"changes": {
"elsif.rb": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
4,
1
]
}
},
"summary": "Added the 'baz' elsif block"
}
]
},
"errors": {}
},
"filePaths": [
"elsif.rb"
],
"sha1": "d86011611e0415521179b53d9cb20fb3cdf8fafa",
"gitDir": "test/corpus/repos/ruby",
"sha2": "4a763ccdd1f90aaaf080fc3a18023a2f204af612"
}
,{
"testCaseDescription": "ruby-elsif-replacement-test",
"expectedResult": {
"changes": {
"elsif.rb": [
{
"span": {
"insert": {
"start": [
4,
3
],
"end": [
4,
8
]
}
},
"summary": "Added the 'qoz()' function call in the 'baz' elsif block"
}
]
},
"errors": {}
},
"filePaths": [
"elsif.rb"
],
"sha1": "4a763ccdd1f90aaaf080fc3a18023a2f204af612",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e708e14098bc8a374bb3c7d9db04ae530391c427"
}
,{
"testCaseDescription": "ruby-elsif-delete-replacement-test",
"expectedResult": {
"changes": {
"elsif.rb": [
{
"span": {
"delete": {
"start": [
4,
3
],
"end": [
4,
8
]
}
},
"summary": "Deleted the 'qoz()' function call in the 'baz' elsif block"
}
]
},
"errors": {}
},
"filePaths": [
"elsif.rb"
],
"sha1": "e708e14098bc8a374bb3c7d9db04ae530391c427",
"gitDir": "test/corpus/repos/ruby",
"sha2": "fa18382ac60432ae0a486be91b01afd0f6aaa75c"
}
,{
"testCaseDescription": "ruby-elsif-delete-insert-test",
"expectedResult": {
"changes": {
"elsif.rb": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
4,
1
]
}
},
"summary": "Deleted the 'baz' elsif block"
}
]
},
"errors": {}
},
"filePaths": [
"elsif.rb"
],
"sha1": "fa18382ac60432ae0a486be91b01afd0f6aaa75c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0187a64c75ce1a0c68c8ef6f086b0cd6b2fc1147"
}
,{
"testCaseDescription": "ruby-elsif-teardown-test",
"expectedResult": {
"changes": {
"elsif.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'bar' if statement"
}
]
},
"errors": {}
},
"filePaths": [
"elsif.rb"
],
"sha1": "0187a64c75ce1a0c68c8ef6f086b0cd6b2fc1147",
"gitDir": "test/corpus/repos/ruby",
"sha2": "185f388c63b93f9018e84d711803adf1636308ae"
}]