github.com/klaytn/klaytn@v1.10.2/datasync/chaindatafetcher/kas/mocks/blockchain_api_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/datasync/chaindatafetcher/kas (interfaces: BlockchainAPI) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 api "github.com/klaytn/klaytn/api" 13 common "github.com/klaytn/klaytn/common" 14 hexutil "github.com/klaytn/klaytn/common/hexutil" 15 rpc "github.com/klaytn/klaytn/networks/rpc" 16 ) 17 18 // MockBlockchainAPI is a mock of BlockchainAPI interface 19 type MockBlockchainAPI struct { 20 ctrl *gomock.Controller 21 recorder *MockBlockchainAPIMockRecorder 22 } 23 24 // MockBlockchainAPIMockRecorder is the mock recorder for MockBlockchainAPI 25 type MockBlockchainAPIMockRecorder struct { 26 mock *MockBlockchainAPI 27 } 28 29 // NewMockBlockchainAPI creates a new mock instance 30 func NewMockBlockchainAPI(ctrl *gomock.Controller) *MockBlockchainAPI { 31 mock := &MockBlockchainAPI{ctrl: ctrl} 32 mock.recorder = &MockBlockchainAPIMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use 37 func (m *MockBlockchainAPI) EXPECT() *MockBlockchainAPIMockRecorder { 38 return m.recorder 39 } 40 41 // Call mocks base method 42 func (m *MockBlockchainAPI) Call(arg0 context.Context, arg1 api.CallArgs, arg2 rpc.BlockNumberOrHash) (hexutil.Bytes, error) { 43 m.ctrl.T.Helper() 44 ret := m.ctrl.Call(m, "Call", arg0, arg1, arg2) 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 *MockBlockchainAPIMockRecorder) Call(arg0, arg1, arg2 interface{}) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Call", reflect.TypeOf((*MockBlockchainAPI)(nil).Call), arg0, arg1, arg2) 54 } 55 56 // GetCode mocks base method 57 func (m *MockBlockchainAPI) GetCode(arg0 context.Context, arg1 common.Address, arg2 rpc.BlockNumberOrHash) (hexutil.Bytes, error) { 58 m.ctrl.T.Helper() 59 ret := m.ctrl.Call(m, "GetCode", arg0, arg1, arg2) 60 ret0, _ := ret[0].(hexutil.Bytes) 61 ret1, _ := ret[1].(error) 62 return ret0, ret1 63 } 64 65 // GetCode indicates an expected call of GetCode 66 func (mr *MockBlockchainAPIMockRecorder) GetCode(arg0, arg1, arg2 interface{}) *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCode", reflect.TypeOf((*MockBlockchainAPI)(nil).GetCode), arg0, arg1, arg2) 69 }