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

Method ListSubscriptions

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

ListSubscriptions calls ListSubscriptionsFunc.

(ctx context.Context, limit int)

Source from the content-addressed store, hash-verified

217
218// ListSubscriptions calls ListSubscriptionsFunc.
219func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected