MCPcopy Create free account
hub / github.com/cli/cli / GetSubscriptionCalls

Method GetSubscriptionCalls

pkg/cmd/event/client/client_mock.go:204–216  ·  view source on GitHub ↗

GetSubscriptionCalls gets all the calls that were made to GetSubscription. Check the length with: len(mockedEventClient.GetSubscriptionCalls())

()

Source from the content-addressed store, hash-verified

202//
203// len(mockedEventClient.GetSubscriptionCalls())
204func (mock *EventClientMock) GetSubscriptionCalls() []struct {
205 Ctx context.Context
206 ID string
207} {
208 var calls []struct {
209 Ctx context.Context
210 ID string
211 }
212 mock.lockGetSubscription.RLock()
213 calls = mock.calls.GetSubscription
214 mock.lockGetSubscription.RUnlock()
215 return calls
216}
217
218// ListSubscriptions calls ListSubscriptionsFunc.
219func (mock *EventClientMock) ListSubscriptions(ctx context.Context, limit int) ([]Subscription, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected