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

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