GetSubscription calls GetSubscriptionFunc.
(ctx context.Context, id string)
| 181 | |
| 182 | // GetSubscription calls GetSubscriptionFunc. |
| 183 | func (mock *EventClientMock) GetSubscription(ctx context.Context, id string) (*Subscription, error) { |
| 184 | if mock.GetSubscriptionFunc == nil { |
| 185 | panic("EventClientMock.GetSubscriptionFunc: method is nil but EventClient.GetSubscription was just called") |
| 186 | } |
| 187 | callInfo := struct { |
| 188 | Ctx context.Context |
| 189 | ID string |
| 190 | }{ |
| 191 | Ctx: ctx, |
| 192 | ID: id, |
| 193 | } |
| 194 | mock.lockGetSubscription.Lock() |
| 195 | mock.calls.GetSubscription = append(mock.calls.GetSubscription, callInfo) |
| 196 | mock.lockGetSubscription.Unlock() |
| 197 | return mock.GetSubscriptionFunc(ctx, id) |
| 198 | } |
| 199 | |
| 200 | // GetSubscriptionCalls gets all the calls that were made to GetSubscription. |
| 201 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected