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

Method Do

internal/gh/mock/migration.go:67–80  ·  view source on GitHub ↗

Do calls DoFunc.

(config *ghConfig.Config)

Source from the content-addressed store, hash-verified

65
66// Do calls DoFunc.
67func (mock *MigrationMock) Do(config *ghConfig.Config) error {
68 if mock.DoFunc == nil {
69 panic("MigrationMock.DoFunc: method is nil but Migration.Do was just called")
70 }
71 callInfo := struct {
72 Config *ghConfig.Config
73 }{
74 Config: config,
75 }
76 mock.lockDo.Lock()
77 mock.calls.Do = append(mock.calls.Do, callInfo)
78 mock.lockDo.Unlock()
79 return mock.DoFunc(config)
80}
81
82// DoCalls gets all the calls that were made to Do.
83// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected