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

Method Remove

pkg/extensions/manager_mock.go:353–366  ·  view source on GitHub ↗

Remove calls RemoveFunc.

(name string)

Source from the content-addressed store, hash-verified

351
352// Remove calls RemoveFunc.
353func (mock *ExtensionManagerMock) Remove(name string) error {
354 if mock.RemoveFunc == nil {
355 panic("ExtensionManagerMock.RemoveFunc: method is nil but ExtensionManager.Remove was just called")
356 }
357 callInfo := struct {
358 Name string
359 }{
360 Name: name,
361 }
362 mock.lockRemove.Lock()
363 mock.calls.Remove = append(mock.calls.Remove, callInfo)
364 mock.lockRemove.Unlock()
365 return mock.RemoveFunc(name)
366}
367
368// RemoveCalls gets all the calls that were made to Remove.
369// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected