MCPcopy Index your code
hub / github.com/cli/cli / DispatchCalls

Method DispatchCalls

pkg/extensions/manager_mock.go:212–228  ·  view source on GitHub ↗

DispatchCalls gets all the calls that were made to Dispatch. Check the length with: len(mockedExtensionManager.DispatchCalls())

()

Source from the content-addressed store, hash-verified

210//
211// len(mockedExtensionManager.DispatchCalls())
212func (mock *ExtensionManagerMock) DispatchCalls() []struct {
213 Args []string
214 Stdin io.Reader
215 Stdout io.Writer
216 Stderr io.Writer
217} {
218 var calls []struct {
219 Args []string
220 Stdin io.Reader
221 Stdout io.Writer
222 Stderr io.Writer
223 }
224 mock.lockDispatch.RLock()
225 calls = mock.calls.Dispatch
226 mock.lockDispatch.RUnlock()
227 return calls
228}
229
230// EnableDryRunMode calls EnableDryRunModeFunc.
231func (mock *ExtensionManagerMock) EnableDryRunMode() {

Callers 1

TestNewCmdExtensionFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestNewCmdExtensionFunction · 0.76