CreateSubscriptionCalls gets all the calls that were made to CreateSubscription. Check the length with: len(mockedEventClient.CreateSubscriptionCalls())
()
| 128 | // |
| 129 | // len(mockedEventClient.CreateSubscriptionCalls()) |
| 130 | func (mock *EventClientMock) CreateSubscriptionCalls() []struct { |
| 131 | Ctx context.Context |
| 132 | ResourceURL string |
| 133 | EventTypes []string |
| 134 | } { |
| 135 | var calls []struct { |
| 136 | Ctx context.Context |
| 137 | ResourceURL string |
| 138 | EventTypes []string |
| 139 | } |
| 140 | mock.lockCreateSubscription.RLock() |
| 141 | calls = mock.calls.CreateSubscription |
| 142 | mock.lockCreateSubscription.RUnlock() |
| 143 | return calls |
| 144 | } |
| 145 | |
| 146 | // DeleteSubscription calls DeleteSubscriptionFunc. |
| 147 | func (mock *EventClientMock) DeleteSubscription(ctx context.Context, id string) error { |
no outgoing calls