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

Method GetSubscription

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

GetSubscription calls GetSubscriptionFunc.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

181
182// GetSubscription calls GetSubscriptionFunc.
183func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected