github.com/klaytn/klaytn@v1.12.1/node/cn/mocks/fetcher_mock.go (about)

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