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