mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
263 lines
7.5 KiB
JSON
263 lines
7.5 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-begin-rescue-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"begin-rescue.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"begin-rescue.rb"
|
|
],
|
|
"sha1": "21b5c52a862dd540d98fdecc22d3c4313f5ba9bd",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "977983e66129257cd757452663890156bad99ad9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-begin-rescue-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"begin-rescue.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"begin-rescue.rb"
|
|
],
|
|
"sha1": "977983e66129257cd757452663890156bad99ad9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "88d32139664840e5d311402fa030c6fb29a873b3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-begin-rescue-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"begin-rescue.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an rescue block in a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"begin-rescue.rb"
|
|
],
|
|
"sha1": "88d32139664840e5d311402fa030c6fb29a873b3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f683c3c2e72b4d28e401871407a2de5c2e0a89a4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-begin-rescue-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"begin-rescue.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an rescue block in a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"begin-rescue.rb"
|
|
],
|
|
"sha1": "f683c3c2e72b4d28e401871407a2de5c2e0a89a4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "104bae02b1a739b38c6e020ee19d5892d95c58fe"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-begin-rescue-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"begin-rescue.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"begin-rescue.rb"
|
|
],
|
|
"sha1": "104bae02b1a739b38c6e020ee19d5892d95c58fe",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "1bae10f12aee7a7c9c0a6eed7395998df2cf339e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-begin-rescue-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"begin-rescue.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"begin-rescue.rb"
|
|
],
|
|
"sha1": "1bae10f12aee7a7c9c0a6eed7395998df2cf339e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6ea02eed44a5d2b4c229b009e3415f36930faacd"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-begin-rescue-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"begin-rescue.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"begin-rescue.rb"
|
|
],
|
|
"sha1": "6ea02eed44a5d2b4c229b009e3415f36930faacd",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f238cdb2ac430dc152785789b687fee81a58a41c"
|
|
}]
|