ListSubscriptions calls ListSubscriptionsFunc.
(ctx context.Context, limit int)
| 217 | |
| 218 | // ListSubscriptions calls ListSubscriptionsFunc. |
| 219 | func (mock *EventClientMock) ListSubscriptions(ctx context.Context, limit int) ([]Subscription, error) { |
| 220 | if mock.ListSubscriptionsFunc == nil { |
| 221 | panic("EventClientMock.ListSubscriptionsFunc: method is nil but EventClient.ListSubscriptions was just called") |
| 222 | } |
| 223 | callInfo := struct { |
| 224 | Ctx context.Context |
| 225 | Limit int |
| 226 | }{ |
| 227 | Ctx: ctx, |
| 228 | Limit: limit, |
| 229 | } |
| 230 | mock.lockListSubscriptions.Lock() |
| 231 | mock.calls.ListSubscriptions = append(mock.calls.ListSubscriptions, callInfo) |
| 232 | mock.lockListSubscriptions.Unlock() |
| 233 | return mock.ListSubscriptionsFunc(ctx, limit) |
| 234 | } |
| 235 | |
| 236 | // ListSubscriptionsCalls gets all the calls that were made to ListSubscriptions. |
| 237 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected