github.com/aergoio/aergo@v1.3.1/p2p/p2pmock/mock_internalservice.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: internalservice.go
     3  
     4  // Package p2pmock is a generated GoMock package.
     5  package p2pmock
     6  
     7  import (
     8  	p2pcommon "github.com/aergoio/aergo/p2p/p2pcommon"
     9  	types "github.com/aergoio/aergo/types"
    10  	gomock "github.com/golang/mock/gomock"
    11  	reflect "reflect"
    12  )
    13  
    14  // MockInternalService is a mock of InternalService interface
    15  type MockInternalService struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockInternalServiceMockRecorder
    18  }
    19  
    20  // MockInternalServiceMockRecorder is the mock recorder for MockInternalService
    21  type MockInternalServiceMockRecorder struct {
    22  	mock *MockInternalService
    23  }
    24  
    25  // NewMockInternalService creates a new mock instance
    26  func NewMockInternalService(ctrl *gomock.Controller) *MockInternalService {
    27  	mock := &MockInternalService{ctrl: ctrl}
    28  	mock.recorder = &MockInternalServiceMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use
    33  func (m *MockInternalService) EXPECT() *MockInternalServiceMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // SelfMeta mocks base method
    38  func (m *MockInternalService) SelfMeta() p2pcommon.PeerMeta {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "SelfMeta")
    41  	ret0, _ := ret[0].(p2pcommon.PeerMeta)
    42  	return ret0
    43  }
    44  
    45  // SelfMeta indicates an expected call of SelfMeta
    46  func (mr *MockInternalServiceMockRecorder) SelfMeta() *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfMeta", reflect.TypeOf((*MockInternalService)(nil).SelfMeta))
    49  }
    50  
    51  // SelfNodeID mocks base method
    52  func (m *MockInternalService) SelfNodeID() types.PeerID {
    53  	m.ctrl.T.Helper()
    54  	ret := m.ctrl.Call(m, "SelfNodeID")
    55  	ret0, _ := ret[0].(types.PeerID)
    56  	return ret0
    57  }
    58  
    59  // SelfNodeID indicates an expected call of SelfNodeID
    60  func (mr *MockInternalServiceMockRecorder) SelfNodeID() *gomock.Call {
    61  	mr.mock.ctrl.T.Helper()
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfNodeID", reflect.TypeOf((*MockInternalService)(nil).SelfNodeID))
    63  }
    64  
    65  // SelfRole mocks base method
    66  func (m *MockInternalService) SelfRole() p2pcommon.PeerRole {
    67  	m.ctrl.T.Helper()
    68  	ret := m.ctrl.Call(m, "SelfRole")
    69  	ret0, _ := ret[0].(p2pcommon.PeerRole)
    70  	return ret0
    71  }
    72  
    73  // SelfRole indicates an expected call of SelfRole
    74  func (mr *MockInternalServiceMockRecorder) SelfRole() *gomock.Call {
    75  	mr.mock.ctrl.T.Helper()
    76  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfRole", reflect.TypeOf((*MockInternalService)(nil).SelfRole))
    77  }
    78  
    79  // GetChainAccessor mocks base method
    80  func (m *MockInternalService) GetChainAccessor() types.ChainAccessor {
    81  	m.ctrl.T.Helper()
    82  	ret := m.ctrl.Call(m, "GetChainAccessor")
    83  	ret0, _ := ret[0].(types.ChainAccessor)
    84  	return ret0
    85  }
    86  
    87  // GetChainAccessor indicates an expected call of GetChainAccessor
    88  func (mr *MockInternalServiceMockRecorder) GetChainAccessor() *gomock.Call {
    89  	mr.mock.ctrl.T.Helper()
    90  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChainAccessor", reflect.TypeOf((*MockInternalService)(nil).GetChainAccessor))
    91  }