mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
187 lines
5.2 KiB
JSON
187 lines
5.2 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-rescue-setup-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue.rb"
|
|
],
|
|
"sha1": "96b198057dd2d93412c9bc9cba5b76939a345329",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6e3f9905304cfe8c1c4df7a0e366c08002ea2c10"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' rescue block in a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue.rb"
|
|
],
|
|
"sha1": "6e3f9905304cfe8c1c4df7a0e366c08002ea2c10",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "dc632b49848a2e2b3b17f892985c0c2e3e649a0f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier in the 'x' rescue block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue.rb"
|
|
],
|
|
"sha1": "dc632b49848a2e2b3b17f892985c0c2e3e649a0f",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ebf19536e8ca621c5c28bd4e8f1ff1ada05a9701"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier in the 'x' rescue block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue.rb"
|
|
],
|
|
"sha1": "ebf19536e8ca621c5c28bd4e8f1ff1ada05a9701",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e75efcb699aa96ae619519b4b8678b33cc5eb5a4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' rescue block in a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue.rb"
|
|
],
|
|
"sha1": "e75efcb699aa96ae619519b4b8678b33cc5eb5a4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "2aa4b2a6c5cf75817c062542ba314209cd8826ac"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-teardown-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue.rb"
|
|
],
|
|
"sha1": "2aa4b2a6c5cf75817c062542ba314209cd8826ac",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c4e3bd3c2f9f845c116b7b567b28eaa7a2ac6327"
|
|
}]
|