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

Method InstallLocal

pkg/extensions/manager_mock.go:294–307  ·  view source on GitHub ↗

InstallLocal calls InstallLocalFunc.

(dir string)

Source from the content-addressed store, hash-verified

292
293// InstallLocal calls InstallLocalFunc.
294func (mock *ExtensionManagerMock) InstallLocal(dir string) error {
295 if mock.InstallLocalFunc == nil {
296 panic("ExtensionManagerMock.InstallLocalFunc: method is nil but ExtensionManager.InstallLocal was just called")
297 }
298 callInfo := struct {
299 Dir string
300 }{
301 Dir: dir,
302 }
303 mock.lockInstallLocal.Lock()
304 mock.calls.InstallLocal = append(mock.calls.InstallLocal, callInfo)
305 mock.lockInstallLocal.Unlock()
306 return mock.InstallLocalFunc(dir)
307}
308
309// InstallLocalCalls gets all the calls that were made to InstallLocal.
310// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected