github.com/koko1123/flow-go-1@v0.29.6/module/mocks/network.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/koko1123/flow-go-1/module (interfaces: Local,Requester)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	crypto "github.com/onflow/flow-go/crypto"
    10  	hash "github.com/onflow/flow-go/crypto/hash"
    11  	flow "github.com/koko1123/flow-go-1/model/flow"
    12  	reflect "reflect"
    13  )
    14  
    15  // MockLocal is a mock of Local interface
    16  type MockLocal struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockLocalMockRecorder
    19  }
    20  
    21  // MockLocalMockRecorder is the mock recorder for MockLocal
    22  type MockLocalMockRecorder struct {
    23  	mock *MockLocal
    24  }
    25  
    26  // NewMockLocal creates a new mock instance
    27  func NewMockLocal(ctrl *gomock.Controller) *MockLocal {
    28  	mock := &MockLocal{ctrl: ctrl}
    29  	mock.recorder = &MockLocalMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use
    34  func (m *MockLocal) EXPECT() *MockLocalMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Address mocks base method
    39  func (m *MockLocal) Address() string {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "Address")
    42  	ret0, _ := ret[0].(string)
    43  	return ret0
    44  }
    45  
    46  // Address indicates an expected call of Address
    47  func (mr *MockLocalMockRecorder) Address() *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Address", reflect.TypeOf((*MockLocal)(nil).Address))
    50  }
    51  
    52  // NodeID mocks base method
    53  func (m *MockLocal) NodeID() flow.Identifier {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "NodeID")
    56  	ret0, _ := ret[0].(flow.Identifier)
    57  	return ret0
    58  }
    59  
    60  // NodeID indicates an expected call of NodeID
    61  func (mr *MockLocalMockRecorder) NodeID() *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeID", reflect.TypeOf((*MockLocal)(nil).NodeID))
    64  }
    65  
    66  // NotMeFilter mocks base method
    67  func (m *MockLocal) NotMeFilter() flow.IdentityFilter {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "NotMeFilter")
    70  	ret0, _ := ret[0].(flow.IdentityFilter)
    71  	return ret0
    72  }
    73  
    74  // NotMeFilter indicates an expected call of NotMeFilter
    75  func (mr *MockLocalMockRecorder) NotMeFilter() *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NotMeFilter", reflect.TypeOf((*MockLocal)(nil).NotMeFilter))
    78  }
    79  
    80  // Sign mocks base method
    81  func (m *MockLocal) Sign(arg0 []byte, arg1 hash.Hasher) (crypto.Signature, error) {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "Sign", arg0, arg1)
    84  	ret0, _ := ret[0].(crypto.Signature)
    85  	ret1, _ := ret[1].(error)
    86  	return ret0, ret1
    87  }
    88  
    89  // Sign indicates an expected call of Sign
    90  func (mr *MockLocalMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call {
    91  	mr.mock.ctrl.T.Helper()
    92  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockLocal)(nil).Sign), arg0, arg1)
    93  }
    94  
    95  // SignFunc mocks base method
    96  func (m *MockLocal) SignFunc(arg0 []byte, arg1 hash.Hasher, arg2 func(crypto.PrivateKey, []byte, hash.Hasher) (crypto.Signature, error)) (crypto.Signature, error) {
    97  	m.ctrl.T.Helper()
    98  	ret := m.ctrl.Call(m, "SignFunc", arg0, arg1, arg2)
    99  	ret0, _ := ret[0].(crypto.Signature)
   100  	ret1, _ := ret[1].(error)
   101  	return ret0, ret1
   102  }
   103  
   104  // SignFunc indicates an expected call of SignFunc
   105  func (mr *MockLocalMockRecorder) SignFunc(arg0, arg1, arg2 interface{}) *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignFunc", reflect.TypeOf((*MockLocal)(nil).SignFunc), arg0, arg1, arg2)
   108  }
   109  
   110  // MockRequester is a mock of Requester interface
   111  type MockRequester struct {
   112  	ctrl     *gomock.Controller
   113  	recorder *MockRequesterMockRecorder
   114  }
   115  
   116  // MockRequesterMockRecorder is the mock recorder for MockRequester
   117  type MockRequesterMockRecorder struct {
   118  	mock *MockRequester
   119  }
   120  
   121  // NewMockRequester creates a new mock instance
   122  func NewMockRequester(ctrl *gomock.Controller) *MockRequester {
   123  	mock := &MockRequester{ctrl: ctrl}
   124  	mock.recorder = &MockRequesterMockRecorder{mock}
   125  	return mock
   126  }
   127  
   128  // EXPECT returns an object that allows the caller to indicate expected use
   129  func (m *MockRequester) EXPECT() *MockRequesterMockRecorder {
   130  	return m.recorder
   131  }
   132  
   133  // EntityByID mocks base method
   134  func (m *MockRequester) EntityByID(arg0 flow.Identifier, arg1 flow.IdentityFilter) {
   135  	m.ctrl.T.Helper()
   136  	m.ctrl.Call(m, "EntityByID", arg0, arg1)
   137  }
   138  
   139  // EntityByID indicates an expected call of EntityByID
   140  func (mr *MockRequesterMockRecorder) EntityByID(arg0, arg1 interface{}) *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EntityByID", reflect.TypeOf((*MockRequester)(nil).EntityByID), arg0, arg1)
   143  }
   144  
   145  // Force mocks base method
   146  func (m *MockRequester) Force() {
   147  	m.ctrl.T.Helper()
   148  	m.ctrl.Call(m, "Force")
   149  }
   150  
   151  // Force indicates an expected call of Force
   152  func (mr *MockRequesterMockRecorder) Force() *gomock.Call {
   153  	mr.mock.ctrl.T.Helper()
   154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Force", reflect.TypeOf((*MockRequester)(nil).Force))
   155  }
   156  
   157  // Query mocks base method
   158  func (m *MockRequester) Query(arg0 flow.Identifier, arg1 flow.IdentityFilter) {
   159  	m.ctrl.T.Helper()
   160  	m.ctrl.Call(m, "Query", arg0, arg1)
   161  }
   162  
   163  // Query indicates an expected call of Query
   164  func (mr *MockRequesterMockRecorder) Query(arg0, arg1 interface{}) *gomock.Call {
   165  	mr.mock.ctrl.T.Helper()
   166  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockRequester)(nil).Query), arg0, arg1)
   167  }