/
coin_storage_helper.go
40 lines (31 loc) · 1.01 KB
/
coin_storage_helper.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Code generated by mockery v1.0.0. DO NOT EDIT.
package modules
import (
context "context"
mock "github.com/stretchr/testify/mock"
database "github.com/keninqiu/rosetta-sdk-go/storage/database"
types "github.com/keninqiu/rosetta-sdk-go/types"
)
// CoinStorageHelper is an autogenerated mock type for the CoinStorageHelper type
type CoinStorageHelper struct {
mock.Mock
}
// CurrentBlockIdentifier provides a mock function with given fields: _a0, _a1
func (_m *CoinStorageHelper) CurrentBlockIdentifier(_a0 context.Context, _a1 database.Transaction) (*types.BlockIdentifier, error) {
ret := _m.Called(_a0, _a1)
var r0 *types.BlockIdentifier
if rf, ok := ret.Get(0).(func(context.Context, database.Transaction) *types.BlockIdentifier); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*types.BlockIdentifier)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, database.Transaction) error); ok {
r1 = rf(_a0, _a1)
} else {
r1 = ret.Error(1)
}
return r0, r1
}