2016-11-02 23:05:30 +03:00
|
|
|
[{
|
2016-11-03 23:26:53 +03:00
|
|
|
"testCaseDescription": "ruby-rescue-setup-test",
|
2016-11-02 23:05:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-03 23:26:53 +03:00
|
|
|
3,
|
2016-11-02 23:05:30 +03:00
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added a begin statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue.rb"
|
|
|
|
],
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha1": "96b198057dd2d93412c9bc9cba5b76939a345329",
|
2016-11-02 23:05:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha2": "6e3f9905304cfe8c1c4df7a0e366c08002ea2c10"
|
2016-11-02 23:05:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-03 23:26:53 +03:00
|
|
|
"testCaseDescription": "ruby-rescue-insert-test",
|
2016-11-02 23:05:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-03 23:26:53 +03:00
|
|
|
3,
|
2016-11-02 23:05:30 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-03 23:26:53 +03:00
|
|
|
1
|
2016-11-02 23:05:30 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-03 23:26:53 +03:00
|
|
|
"summary": "Added the 'x' rescue block in a begin statement"
|
2016-11-02 23:05:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue.rb"
|
|
|
|
],
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha1": "6e3f9905304cfe8c1c4df7a0e366c08002ea2c10",
|
2016-11-02 23:05:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha2": "dc632b49848a2e2b3b17f892985c0c2e3e649a0f"
|
2016-11-02 23:05:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-rescue-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-03 03:18:09 +03:00
|
|
|
"summary": "Added the 'bar' identifier in the 'x' rescue block"
|
2016-11-02 23:05:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue.rb"
|
|
|
|
],
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha1": "dc632b49848a2e2b3b17f892985c0c2e3e649a0f",
|
2016-11-02 23:05:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha2": "ebf19536e8ca621c5c28bd4e8f1ff1ada05a9701"
|
2016-11-02 23:05:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-rescue-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-03 23:26:53 +03:00
|
|
|
4,
|
|
|
|
3
|
2016-11-02 23:05:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-03 23:26:53 +03:00
|
|
|
4,
|
|
|
|
6
|
2016-11-02 23:05:30 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-03 23:26:53 +03:00
|
|
|
"summary": "Deleted the 'bar' identifier in the 'x' rescue block"
|
2016-11-02 23:05:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue.rb"
|
|
|
|
],
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha1": "ebf19536e8ca621c5c28bd4e8f1ff1ada05a9701",
|
2016-11-02 23:05:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha2": "e75efcb699aa96ae619519b4b8678b33cc5eb5a4"
|
2016-11-02 23:05:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-03 23:26:53 +03:00
|
|
|
"testCaseDescription": "ruby-rescue-delete-insert-test",
|
2016-11-02 23:05:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-03 23:26:53 +03:00
|
|
|
3,
|
2016-11-02 23:05:30 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-03 23:26:53 +03:00
|
|
|
1
|
2016-11-02 23:05:30 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-03 23:26:53 +03:00
|
|
|
"summary": "Deleted the 'x' rescue block in a begin statement"
|
2016-11-02 23:05:30 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue.rb"
|
|
|
|
],
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha1": "e75efcb699aa96ae619519b4b8678b33cc5eb5a4",
|
2016-11-02 23:05:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha2": "2aa4b2a6c5cf75817c062542ba314209cd8826ac"
|
2016-11-02 23:05:30 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-03 23:26:53 +03:00
|
|
|
"testCaseDescription": "ruby-rescue-teardown-test",
|
2016-11-02 23:05:30 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-03 23:26:53 +03:00
|
|
|
3,
|
2016-11-02 23:05:30 +03:00
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted a begin statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue.rb"
|
|
|
|
],
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha1": "2aa4b2a6c5cf75817c062542ba314209cd8826ac",
|
2016-11-02 23:05:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2016-11-03 23:26:53 +03:00
|
|
|
"sha2": "c4e3bd3c2f9f845c116b7b567b28eaa7a2ac6327"
|
2016-11-02 23:05:30 +03:00
|
|
|
}]
|