DeleteSubscription calls DeleteSubscriptionFunc.
(ctx context.Context, id string)
| 145 | |
| 146 | // DeleteSubscription calls DeleteSubscriptionFunc. |
| 147 | func (mock *EventClientMock) DeleteSubscription(ctx context.Context, id string) error { |
| 148 | if mock.DeleteSubscriptionFunc == nil { |
| 149 | panic("EventClientMock.DeleteSubscriptionFunc: method is nil but EventClient.DeleteSubscription was just called") |
| 150 | } |
| 151 | callInfo := struct { |
| 152 | Ctx context.Context |
| 153 | ID string |
| 154 | }{ |
| 155 | Ctx: ctx, |
| 156 | ID: id, |
| 157 | } |
| 158 | mock.lockDeleteSubscription.Lock() |
| 159 | mock.calls.DeleteSubscription = append(mock.calls.DeleteSubscription, callInfo) |
| 160 | mock.lockDeleteSubscription.Unlock() |
| 161 | return mock.DeleteSubscriptionFunc(ctx, id) |
| 162 | } |
| 163 | |
| 164 | // DeleteSubscriptionCalls gets all the calls that were made to DeleteSubscription. |
| 165 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected