github.com/klaytn/klaytn@v1.12.1/node/sc/kas/mocks/blockchain_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/kas (interfaces: BlockChain) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 types "github.com/klaytn/klaytn/blockchain/types" 12 ) 13 14 // MockBlockChain is a mock of BlockChain interface 15 type MockBlockChain struct { 16 ctrl *gomock.Controller 17 recorder *MockBlockChainMockRecorder 18 } 19 20 // MockBlockChainMockRecorder is the mock recorder for MockBlockChain 21 type MockBlockChainMockRecorder struct { 22 mock *MockBlockChain 23 } 24 25 // NewMockBlockChain creates a new mock instance 26 func NewMockBlockChain(ctrl *gomock.Controller) *MockBlockChain { 27 mock := &MockBlockChain{ctrl: ctrl} 28 mock.recorder = &MockBlockChainMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use 33 func (m *MockBlockChain) EXPECT() *MockBlockChainMockRecorder { 34 return m.recorder 35 } 36 37 // GetBlockByNumber mocks base method 38 func (m *MockBlockChain) GetBlockByNumber(arg0 uint64) *types.Block { 39 m.ctrl.T.Helper() 40 ret := m.ctrl.Call(m, "GetBlockByNumber", arg0) 41 ret0, _ := ret[0].(*types.Block) 42 return ret0 43 } 44 45 // GetBlockByNumber indicates an expected call of GetBlockByNumber 46 func (mr *MockBlockChainMockRecorder) GetBlockByNumber(arg0 interface{}) *gomock.Call { 47 mr.mock.ctrl.T.Helper() 48 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockByNumber", reflect.TypeOf((*MockBlockChain)(nil).GetBlockByNumber), arg0) 49 }