github.com/aergoio/aergo@v1.3.1/p2p/p2pmock/mock_actorservice.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/aergoio/aergo/p2p/p2pcommon (interfaces: ActorService) 3 4 // Package mock_p2pcommon is a generated GoMock package. 5 package p2pmock 6 7 import ( 8 reflect "reflect" 9 time "time" 10 11 actor "github.com/aergoio/aergo-actor/actor" 12 types "github.com/aergoio/aergo/types" 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockActorService is a mock of ActorService interface 17 type MockActorService struct { 18 ctrl *gomock.Controller 19 recorder *MockActorServiceMockRecorder 20 } 21 22 // MockActorServiceMockRecorder is the mock recorder for MockActorService 23 type MockActorServiceMockRecorder struct { 24 mock *MockActorService 25 } 26 27 // NewMockActorService creates a new mock instance 28 func NewMockActorService(ctrl *gomock.Controller) *MockActorService { 29 mock := &MockActorService{ctrl: ctrl} 30 mock.recorder = &MockActorServiceMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use 35 func (m *MockActorService) EXPECT() *MockActorServiceMockRecorder { 36 return m.recorder 37 } 38 39 // CallRequest mocks base method 40 func (m *MockActorService) CallRequest(arg0 string, arg1 interface{}, arg2 time.Duration) (interface{}, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "CallRequest", arg0, arg1, arg2) 43 ret0, _ := ret[0].(interface{}) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // CallRequest indicates an expected call of CallRequest 49 func (mr *MockActorServiceMockRecorder) CallRequest(arg0, arg1, arg2 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallRequest", reflect.TypeOf((*MockActorService)(nil).CallRequest), arg0, arg1, arg2) 52 } 53 54 // CallRequestDefaultTimeout mocks base method 55 func (m *MockActorService) CallRequestDefaultTimeout(arg0 string, arg1 interface{}) (interface{}, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "CallRequestDefaultTimeout", arg0, arg1) 58 ret0, _ := ret[0].(interface{}) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // CallRequestDefaultTimeout indicates an expected call of CallRequestDefaultTimeout 64 func (mr *MockActorServiceMockRecorder) CallRequestDefaultTimeout(arg0, arg1 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CallRequestDefaultTimeout", reflect.TypeOf((*MockActorService)(nil).CallRequestDefaultTimeout), arg0, arg1) 67 } 68 69 // FutureRequest mocks base method 70 func (m *MockActorService) FutureRequest(arg0 string, arg1 interface{}, arg2 time.Duration) *actor.Future { 71 m.ctrl.T.Helper() 72 ret := m.ctrl.Call(m, "FutureRequest", arg0, arg1, arg2) 73 ret0, _ := ret[0].(*actor.Future) 74 return ret0 75 } 76 77 // FutureRequest indicates an expected call of FutureRequest 78 func (mr *MockActorServiceMockRecorder) FutureRequest(arg0, arg1, arg2 interface{}) *gomock.Call { 79 mr.mock.ctrl.T.Helper() 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FutureRequest", reflect.TypeOf((*MockActorService)(nil).FutureRequest), arg0, arg1, arg2) 81 } 82 83 // FutureRequestDefaultTimeout mocks base method 84 func (m *MockActorService) FutureRequestDefaultTimeout(arg0 string, arg1 interface{}) *actor.Future { 85 m.ctrl.T.Helper() 86 ret := m.ctrl.Call(m, "FutureRequestDefaultTimeout", arg0, arg1) 87 ret0, _ := ret[0].(*actor.Future) 88 return ret0 89 } 90 91 // FutureRequestDefaultTimeout indicates an expected call of FutureRequestDefaultTimeout 92 func (mr *MockActorServiceMockRecorder) FutureRequestDefaultTimeout(arg0, arg1 interface{}) *gomock.Call { 93 mr.mock.ctrl.T.Helper() 94 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FutureRequestDefaultTimeout", reflect.TypeOf((*MockActorService)(nil).FutureRequestDefaultTimeout), arg0, arg1) 95 } 96 97 // GetChainAccessor mocks base method 98 func (m *MockActorService) GetChainAccessor() types.ChainAccessor { 99 m.ctrl.T.Helper() 100 ret := m.ctrl.Call(m, "GetChainAccessor") 101 ret0, _ := ret[0].(types.ChainAccessor) 102 return ret0 103 } 104 105 // GetChainAccessor indicates an expected call of GetChainAccessor 106 func (mr *MockActorServiceMockRecorder) GetChainAccessor() *gomock.Call { 107 mr.mock.ctrl.T.Helper() 108 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChainAccessor", reflect.TypeOf((*MockActorService)(nil).GetChainAccessor)) 109 } 110 111 // SendRequest mocks base method 112 func (m *MockActorService) SendRequest(arg0 string, arg1 interface{}) { 113 m.ctrl.T.Helper() 114 m.ctrl.Call(m, "SendRequest", arg0, arg1) 115 } 116 117 // SendRequest indicates an expected call of SendRequest 118 func (mr *MockActorServiceMockRecorder) SendRequest(arg0, arg1 interface{}) *gomock.Call { 119 mr.mock.ctrl.T.Helper() 120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendRequest", reflect.TypeOf((*MockActorService)(nil).SendRequest), arg0, arg1) 121 } 122 123 // TellRequest mocks base method 124 func (m *MockActorService) TellRequest(arg0 string, arg1 interface{}) { 125 m.ctrl.T.Helper() 126 m.ctrl.Call(m, "TellRequest", arg0, arg1) 127 } 128 129 // TellRequest indicates an expected call of TellRequest 130 func (mr *MockActorServiceMockRecorder) TellRequest(arg0, arg1 interface{}) *gomock.Call { 131 mr.mock.ctrl.T.Helper() 132 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TellRequest", reflect.TypeOf((*MockActorService)(nil).TellRequest), arg0, arg1) 133 }