github.com/palisadeinc/bor@v0.0.0-20230615125219-ab7196213d15/consensus/bor/api/caller_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/ethereum/go-ethereum/consensus/bor/api (interfaces: Caller) 3 4 // Package api is a generated GoMock package. 5 package api 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 hexutil "github.com/ethereum/go-ethereum/common/hexutil" 12 state "github.com/ethereum/go-ethereum/core/state" 13 ethapi "github.com/ethereum/go-ethereum/internal/ethapi" 14 rpc "github.com/ethereum/go-ethereum/rpc" 15 gomock "github.com/golang/mock/gomock" 16 ) 17 18 // MockCaller is a mock of Caller interface. 19 type MockCaller struct { 20 ctrl *gomock.Controller 21 recorder *MockCallerMockRecorder 22 } 23 24 // MockCallerMockRecorder is the mock recorder for MockCaller. 25 type MockCallerMockRecorder struct { 26 mock *MockCaller 27 } 28 29 // NewMockCaller creates a new mock instance. 30 func NewMockCaller(ctrl *gomock.Controller) *MockCaller { 31 mock := &MockCaller{ctrl: ctrl} 32 mock.recorder = &MockCallerMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use. 37 func (m *MockCaller) EXPECT() *MockCallerMockRecorder { 38 return m.recorder 39 } 40 41 // Call mocks base method. 42 func (m *MockCaller) Call(arg0 context.Context, arg1 ethapi.TransactionArgs, arg2 rpc.BlockNumberOrHash, arg3 *ethapi.StateOverride) (hexutil.Bytes, error) { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "Call", arg0, arg1, arg2, arg3) 45 ret0, _ := ret[0].(hexutil.Bytes) 46 ret1, _ := ret[1].(error) 47 return ret0, ret1 48 } 49 50 // Call indicates an expected call of Call. 51 func (mr *MockCallerMockRecorder) Call(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Call", reflect.TypeOf((*MockCaller)(nil).Call), arg0, arg1, arg2, arg3) 54 } 55 56 // CallWithState mocks base method. 57 func (m *MockCaller) CallWithState(arg0 context.Context, arg1 ethapi.TransactionArgs, arg2 rpc.BlockNumberOrHash, arg3 *state.StateDB, arg4 *ethapi.StateOverride) (hexutil.Bytes, error) { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "CallWithState", arg0, arg1, arg2, arg3, arg4) 60 ret0, _ := ret[0].(hexutil.Bytes) 61 ret1, _ := ret[1].(error) 62 return ret0, ret1 63 } 64 65 // CallWithState indicates an expected call of CallWithState. 66 func (mr *MockCallerMockRecorder) CallWithState(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallWithState", reflect.TypeOf((*MockCaller)(nil).CallWithState), arg0, arg1, arg2, arg3, arg4) 69 }