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

Method Install

pkg/extensions/manager_mock.go:258–273  ·  view source on GitHub ↗

Install calls InstallFunc.

(interfaceMoqParam ghrepo.Interface, s string)

Source from the content-addressed store, hash-verified

256
257// Install calls InstallFunc.
258func (mock *ExtensionManagerMock) Install(interfaceMoqParam ghrepo.Interface, s string) error {
259 if mock.InstallFunc == nil {
260 panic("ExtensionManagerMock.InstallFunc: method is nil but ExtensionManager.Install was just called")
261 }
262 callInfo := struct {
263 InterfaceMoqParam ghrepo.Interface
264 S string
265 }{
266 InterfaceMoqParam: interfaceMoqParam,
267 S: s,
268 }
269 mock.lockInstall.Lock()
270 mock.calls.Install = append(mock.calls.Install, callInfo)
271 mock.lockInstall.Unlock()
272 return mock.InstallFunc(interfaceMoqParam, s)
273}
274
275// InstallCalls gets all the calls that were made to Install.
276// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected