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/ensure.json
2016-11-03 14:27:47 -07:00

187 lines
5.2 KiB
JSON

[{
"testCaseDescription": "ruby-ensure-setup-test",
"expectedResult": {
"changes": {
"ensure.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Added a begin statement"
}
]
},
"errors": {}
},
"filePaths": [
"ensure.rb"
],
"sha1": "141ffb684fc9a6254fc51dec118d0a7626dc5cf1",
"gitDir": "test/corpus/repos/ruby",
"sha2": "8bad468d53bd6c32d15a51179e935968a960e147"
}
,{
"testCaseDescription": "ruby-ensure-insert-test",
"expectedResult": {
"changes": {
"ensure.rb": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Added an ensure block in a begin statement"
}
]
},
"errors": {}
},
"filePaths": [
"ensure.rb"
],
"sha1": "8bad468d53bd6c32d15a51179e935968a960e147",
"gitDir": "test/corpus/repos/ruby",
"sha2": "c72c59b2ce6fabc05b4b5a470931b6ffefaf1fea"
}
,{
"testCaseDescription": "ruby-ensure-replacement-test",
"expectedResult": {
"changes": {
"ensure.rb": [
{
"span": {
"insert": {
"start": [
4,
3
],
"end": [
4,
6
]
}
},
"summary": "Added the 'bar' identifier in an ensure block"
}
]
},
"errors": {}
},
"filePaths": [
"ensure.rb"
],
"sha1": "c72c59b2ce6fabc05b4b5a470931b6ffefaf1fea",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a5341bb19b676eb4e5d9eedb719f1229775a0568"
}
,{
"testCaseDescription": "ruby-ensure-delete-replacement-test",
"expectedResult": {
"changes": {
"ensure.rb": [
{
"span": {
"delete": {
"start": [
4,
3
],
"end": [
4,
6
]
}
},
"summary": "Deleted the 'bar' identifier in an ensure block"
}
]
},
"errors": {}
},
"filePaths": [
"ensure.rb"
],
"sha1": "a5341bb19b676eb4e5d9eedb719f1229775a0568",
"gitDir": "test/corpus/repos/ruby",
"sha2": "950565bd986bcf48a582580f8eacb49e268001e5"
}
,{
"testCaseDescription": "ruby-ensure-delete-insert-test",
"expectedResult": {
"changes": {
"ensure.rb": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
7
]
}
},
"summary": "Deleted an ensure block in a begin statement"
}
]
},
"errors": {}
},
"filePaths": [
"ensure.rb"
],
"sha1": "950565bd986bcf48a582580f8eacb49e268001e5",
"gitDir": "test/corpus/repos/ruby",
"sha2": "3bf1b2d209a8db9e529c98f65e2730736128af78"
}
,{
"testCaseDescription": "ruby-ensure-teardown-test",
"expectedResult": {
"changes": {
"ensure.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted a begin statement"
}
]
},
"errors": {}
},
"filePaths": [
"ensure.rb"
],
"sha1": "3bf1b2d209a8db9e529c98f65e2730736128af78",
"gitDir": "test/corpus/repos/ruby",
"sha2": "b5bc784487b6cdf785d63aa3a7ecf97e75882c99"
}]