MCPcopy
hub / github.com/cli/cli / UpdateDir

Method UpdateDir

pkg/extensions/manager_mock.go:385–398  ·  view source on GitHub ↗

UpdateDir calls UpdateDirFunc.

(name string)

Source from the content-addressed store, hash-verified

383
384// UpdateDir calls UpdateDirFunc.
385func (mock *ExtensionManagerMock) UpdateDir(name string) string {
386 if mock.UpdateDirFunc == nil {
387 panic("ExtensionManagerMock.UpdateDirFunc: method is nil but ExtensionManager.UpdateDir was just called")
388 }
389 callInfo := struct {
390 Name string
391 }{
392 Name: name,
393 }
394 mock.lockUpdateDir.Lock()
395 mock.calls.UpdateDir = append(mock.calls.UpdateDir, callInfo)
396 mock.lockUpdateDir.Unlock()
397 return mock.UpdateDirFunc(name)
398}
399
400// UpdateDirCalls gets all the calls that were made to UpdateDir.
401// Check the length with:

Callers 1

Calls

no outgoing calls

Tested by 1