github.com/kaleido-io/firefly@v0.0.0-20210622132723-8b4b6aacb971/mocks/eventmocks/event_manager.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package eventmocks 4 5 import ( 6 context "context" 7 8 blockchain "github.com/kaleido-io/firefly/pkg/blockchain" 9 10 dataexchange "github.com/kaleido-io/firefly/pkg/dataexchange" 11 12 fftypes "github.com/kaleido-io/firefly/pkg/fftypes" 13 14 mock "github.com/stretchr/testify/mock" 15 ) 16 17 // EventManager is an autogenerated mock type for the EventManager type 18 type EventManager struct { 19 mock.Mock 20 } 21 22 // BLOBReceived provides a mock function with given fields: dx, peerID, ns, id 23 func (_m *EventManager) BLOBReceived(dx dataexchange.Plugin, peerID string, ns string, id fftypes.UUID) { 24 _m.Called(dx, peerID, ns, id) 25 } 26 27 // BatchPinComplete provides a mock function with given fields: bi, batch, signingIdentity, protocolTxID, additionalInfo 28 func (_m *EventManager) BatchPinComplete(bi blockchain.Plugin, batch *blockchain.BatchPin, signingIdentity string, protocolTxID string, additionalInfo fftypes.JSONObject) error { 29 ret := _m.Called(bi, batch, signingIdentity, protocolTxID, additionalInfo) 30 31 var r0 error 32 if rf, ok := ret.Get(0).(func(blockchain.Plugin, *blockchain.BatchPin, string, string, fftypes.JSONObject) error); ok { 33 r0 = rf(bi, batch, signingIdentity, protocolTxID, additionalInfo) 34 } else { 35 r0 = ret.Error(0) 36 } 37 38 return r0 39 } 40 41 // CreateDurableSubscription provides a mock function with given fields: ctx, subDef 42 func (_m *EventManager) CreateDurableSubscription(ctx context.Context, subDef *fftypes.Subscription) error { 43 ret := _m.Called(ctx, subDef) 44 45 var r0 error 46 if rf, ok := ret.Get(0).(func(context.Context, *fftypes.Subscription) error); ok { 47 r0 = rf(ctx, subDef) 48 } else { 49 r0 = ret.Error(0) 50 } 51 52 return r0 53 } 54 55 // DeleteDurableSubscription provides a mock function with given fields: ctx, subDef 56 func (_m *EventManager) DeleteDurableSubscription(ctx context.Context, subDef *fftypes.Subscription) error { 57 ret := _m.Called(ctx, subDef) 58 59 var r0 error 60 if rf, ok := ret.Get(0).(func(context.Context, *fftypes.Subscription) error); ok { 61 r0 = rf(ctx, subDef) 62 } else { 63 r0 = ret.Error(0) 64 } 65 66 return r0 67 } 68 69 // DeletedSubscriptions provides a mock function with given fields: 70 func (_m *EventManager) DeletedSubscriptions() chan<- *fftypes.UUID { 71 ret := _m.Called() 72 73 var r0 chan<- *fftypes.UUID 74 if rf, ok := ret.Get(0).(func() chan<- *fftypes.UUID); ok { 75 r0 = rf() 76 } else { 77 if ret.Get(0) != nil { 78 r0 = ret.Get(0).(chan<- *fftypes.UUID) 79 } 80 } 81 82 return r0 83 } 84 85 // MessageReceived provides a mock function with given fields: dx, peerID, data 86 func (_m *EventManager) MessageReceived(dx dataexchange.Plugin, peerID string, data []byte) { 87 _m.Called(dx, peerID, data) 88 } 89 90 // NewEvents provides a mock function with given fields: 91 func (_m *EventManager) NewEvents() chan<- int64 { 92 ret := _m.Called() 93 94 var r0 chan<- int64 95 if rf, ok := ret.Get(0).(func() chan<- int64); ok { 96 r0 = rf() 97 } else { 98 if ret.Get(0) != nil { 99 r0 = ret.Get(0).(chan<- int64) 100 } 101 } 102 103 return r0 104 } 105 106 // NewPins provides a mock function with given fields: 107 func (_m *EventManager) NewPins() chan<- int64 { 108 ret := _m.Called() 109 110 var r0 chan<- int64 111 if rf, ok := ret.Get(0).(func() chan<- int64); ok { 112 r0 = rf() 113 } else { 114 if ret.Get(0) != nil { 115 r0 = ret.Get(0).(chan<- int64) 116 } 117 } 118 119 return r0 120 } 121 122 // NewSubscriptions provides a mock function with given fields: 123 func (_m *EventManager) NewSubscriptions() chan<- *fftypes.UUID { 124 ret := _m.Called() 125 126 var r0 chan<- *fftypes.UUID 127 if rf, ok := ret.Get(0).(func() chan<- *fftypes.UUID); ok { 128 r0 = rf() 129 } else { 130 if ret.Get(0) != nil { 131 r0 = ret.Get(0).(chan<- *fftypes.UUID) 132 } 133 } 134 135 return r0 136 } 137 138 // Start provides a mock function with given fields: 139 func (_m *EventManager) Start() error { 140 ret := _m.Called() 141 142 var r0 error 143 if rf, ok := ret.Get(0).(func() error); ok { 144 r0 = rf() 145 } else { 146 r0 = ret.Error(0) 147 } 148 149 return r0 150 } 151 152 // TransferResult provides a mock function with given fields: dx, trackingID, status, info, additionalInfo 153 func (_m *EventManager) TransferResult(dx dataexchange.Plugin, trackingID string, status fftypes.OpStatus, info string, additionalInfo fftypes.JSONObject) { 154 _m.Called(dx, trackingID, status, info, additionalInfo) 155 } 156 157 // TxSubmissionUpdate provides a mock function with given fields: bi, txTrackingID, txState, protocolTxID, errorMessage, additionalInfo 158 func (_m *EventManager) TxSubmissionUpdate(bi blockchain.Plugin, txTrackingID string, txState fftypes.OpStatus, protocolTxID string, errorMessage string, additionalInfo fftypes.JSONObject) error { 159 ret := _m.Called(bi, txTrackingID, txState, protocolTxID, errorMessage, additionalInfo) 160 161 var r0 error 162 if rf, ok := ret.Get(0).(func(blockchain.Plugin, string, fftypes.OpStatus, string, string, fftypes.JSONObject) error); ok { 163 r0 = rf(bi, txTrackingID, txState, protocolTxID, errorMessage, additionalInfo) 164 } else { 165 r0 = ret.Error(0) 166 } 167 168 return r0 169 } 170 171 // WaitStop provides a mock function with given fields: 172 func (_m *EventManager) WaitStop() { 173 _m.Called() 174 }