github.com/iotexproject/iotex-core@v1.14.1-rc1/test/mock/mock_blockdao/mock_blockindexer_withstart.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/iotexproject/iotex-core/blockchain/blockdao (interfaces: BlockIndexerWithStart)
     3  
     4  // Package mock_blockdao is a generated GoMock package.
     5  package mock_blockdao
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	block "github.com/iotexproject/iotex-core/blockchain/block"
    13  )
    14  
    15  // MockBlockIndexerWithStart is a mock of BlockIndexerWithStart interface.
    16  type MockBlockIndexerWithStart struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockBlockIndexerWithStartMockRecorder
    19  }
    20  
    21  // MockBlockIndexerWithStartMockRecorder is the mock recorder for MockBlockIndexerWithStart.
    22  type MockBlockIndexerWithStartMockRecorder struct {
    23  	mock *MockBlockIndexerWithStart
    24  }
    25  
    26  // NewMockBlockIndexerWithStart creates a new mock instance.
    27  func NewMockBlockIndexerWithStart(ctrl *gomock.Controller) *MockBlockIndexerWithStart {
    28  	mock := &MockBlockIndexerWithStart{ctrl: ctrl}
    29  	mock.recorder = &MockBlockIndexerWithStartMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockBlockIndexerWithStart) EXPECT() *MockBlockIndexerWithStartMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // DeleteTipBlock mocks base method.
    39  func (m *MockBlockIndexerWithStart) DeleteTipBlock(arg0 context.Context, arg1 *block.Block) error {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "DeleteTipBlock", arg0, arg1)
    42  	ret0, _ := ret[0].(error)
    43  	return ret0
    44  }
    45  
    46  // DeleteTipBlock indicates an expected call of DeleteTipBlock.
    47  func (mr *MockBlockIndexerWithStartMockRecorder) DeleteTipBlock(arg0, arg1 interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTipBlock", reflect.TypeOf((*MockBlockIndexerWithStart)(nil).DeleteTipBlock), arg0, arg1)
    50  }
    51  
    52  // Height mocks base method.
    53  func (m *MockBlockIndexerWithStart) Height() (uint64, error) {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "Height")
    56  	ret0, _ := ret[0].(uint64)
    57  	ret1, _ := ret[1].(error)
    58  	return ret0, ret1
    59  }
    60  
    61  // Height indicates an expected call of Height.
    62  func (mr *MockBlockIndexerWithStartMockRecorder) Height() *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Height", reflect.TypeOf((*MockBlockIndexerWithStart)(nil).Height))
    65  }
    66  
    67  // PutBlock mocks base method.
    68  func (m *MockBlockIndexerWithStart) PutBlock(arg0 context.Context, arg1 *block.Block) error {
    69  	m.ctrl.T.Helper()
    70  	ret := m.ctrl.Call(m, "PutBlock", arg0, arg1)
    71  	ret0, _ := ret[0].(error)
    72  	return ret0
    73  }
    74  
    75  // PutBlock indicates an expected call of PutBlock.
    76  func (mr *MockBlockIndexerWithStartMockRecorder) PutBlock(arg0, arg1 interface{}) *gomock.Call {
    77  	mr.mock.ctrl.T.Helper()
    78  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutBlock", reflect.TypeOf((*MockBlockIndexerWithStart)(nil).PutBlock), arg0, arg1)
    79  }
    80  
    81  // Start mocks base method.
    82  func (m *MockBlockIndexerWithStart) Start(arg0 context.Context) error {
    83  	m.ctrl.T.Helper()
    84  	ret := m.ctrl.Call(m, "Start", arg0)
    85  	ret0, _ := ret[0].(error)
    86  	return ret0
    87  }
    88  
    89  // Start indicates an expected call of Start.
    90  func (mr *MockBlockIndexerWithStartMockRecorder) Start(arg0 interface{}) *gomock.Call {
    91  	mr.mock.ctrl.T.Helper()
    92  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockBlockIndexerWithStart)(nil).Start), arg0)
    93  }
    94  
    95  // StartHeight mocks base method.
    96  func (m *MockBlockIndexerWithStart) StartHeight() uint64 {
    97  	m.ctrl.T.Helper()
    98  	ret := m.ctrl.Call(m, "StartHeight")
    99  	ret0, _ := ret[0].(uint64)
   100  	return ret0
   101  }
   102  
   103  // StartHeight indicates an expected call of StartHeight.
   104  func (mr *MockBlockIndexerWithStartMockRecorder) StartHeight() *gomock.Call {
   105  	mr.mock.ctrl.T.Helper()
   106  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartHeight", reflect.TypeOf((*MockBlockIndexerWithStart)(nil).StartHeight))
   107  }
   108  
   109  // Stop mocks base method.
   110  func (m *MockBlockIndexerWithStart) Stop(arg0 context.Context) error {
   111  	m.ctrl.T.Helper()
   112  	ret := m.ctrl.Call(m, "Stop", arg0)
   113  	ret0, _ := ret[0].(error)
   114  	return ret0
   115  }
   116  
   117  // Stop indicates an expected call of Stop.
   118  func (mr *MockBlockIndexerWithStartMockRecorder) Stop(arg0 interface{}) *gomock.Call {
   119  	mr.mock.ctrl.T.Helper()
   120  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockBlockIndexerWithStart)(nil).Stop), arg0)
   121  }