MCPcopy
hub / github.com/cli/cli / Name

Method Name

pkg/extensions/extension_mock.go:268–278  ·  view source on GitHub ↗

Name calls NameFunc.

()

Source from the content-addressed store, hash-verified

266
267// Name calls NameFunc.
268func (mock *ExtensionMock) Name() string {
269 if mock.NameFunc == nil {
270 panic("ExtensionMock.NameFunc: method is nil but Extension.Name was just called")
271 }
272 callInfo := struct {
273 }{}
274 mock.lockName.Lock()
275 mock.calls.Name = append(mock.calls.Name, callInfo)
276 mock.lockName.Unlock()
277 return mock.NameFunc()
278}
279
280// NameCalls gets all the calls that were made to Name.
281// Check the length with:

Callers 1

Calls

no outgoing calls

Tested by 1