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

Method CreateSubscriptionCalls

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

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

()

Source from the content-addressed store, hash-verified

128//
129// len(mockedEventClient.CreateSubscriptionCalls())
130func (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.
147func (mock *EventClientMock) DeleteSubscription(ctx context.Context, id string) error {

Callers 1

TestListenRunFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestListenRunFunction · 0.76