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

Method DeleteSubscription

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

DeleteSubscription calls DeleteSubscriptionFunc.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

145
146// DeleteSubscription calls DeleteSubscriptionFunc.
147func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected