mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
263 lines
7.6 KiB
JSON
263 lines
7.6 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-rescue-last-ex-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-last-ex.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-last-ex.rb"
|
|
],
|
|
"sha1": "38a1c2b8c754125402640be198510c28f65f9e7b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "eee2f6bb5c666769a652940dcd85e81ee768bfa1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-last-ex-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-last-ex.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-last-ex.rb"
|
|
],
|
|
"sha1": "eee2f6bb5c666769a652940dcd85e81ee768bfa1",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b8ed6f50d399f51348d31c22f44d9ceb41eb33e5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-last-ex-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-last-ex.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier in the 'Error => x' rescue block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-last-ex.rb"
|
|
],
|
|
"sha1": "b8ed6f50d399f51348d31c22f44d9ceb41eb33e5",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a523bab23bb3f052f3afde7e88514d8bb0c55033"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-last-ex-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-last-ex.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier in the 'Error => x' rescue block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-last-ex.rb"
|
|
],
|
|
"sha1": "a523bab23bb3f052f3afde7e88514d8bb0c55033",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "cbfb406bf30baac8e5d6e4a93f8e4955ce250581"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-last-ex-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-last-ex.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-last-ex.rb"
|
|
],
|
|
"sha1": "cbfb406bf30baac8e5d6e4a93f8e4955ce250581",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b777dec626f5e6b8daeeb6a22db0f2bf669d39a5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-last-ex-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-last-ex.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-last-ex.rb"
|
|
],
|
|
"sha1": "b777dec626f5e6b8daeeb6a22db0f2bf669d39a5",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "712f1ceccd22a6994f29adf6960671be567657a4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-rescue-last-ex-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rescue-last-ex.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rescue-last-ex.rb"
|
|
],
|
|
"sha1": "712f1ceccd22a6994f29adf6960671be567657a4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d00fdf73e29c3ee54c0d74ee0083b049c296c0de"
|
|
}]
|