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

Method InputHostname

internal/prompter/prompter_mock.go:304–314  ·  view source on GitHub ↗

InputHostname calls InputHostnameFunc.

()

Source from the content-addressed store, hash-verified

302
303// InputHostname calls InputHostnameFunc.
304func (mock *PrompterMock) InputHostname() (string, error) {
305 if mock.InputHostnameFunc == nil {
306 panic("PrompterMock.InputHostnameFunc: method is nil but Prompter.InputHostname was just called")
307 }
308 callInfo := struct {
309 }{}
310 mock.lockInputHostname.Lock()
311 mock.calls.InputHostname = append(mock.calls.InputHostname, callInfo)
312 mock.lockInputHostname.Unlock()
313 return mock.InputHostnameFunc()
314}
315
316// InputHostnameCalls gets all the calls that were made to InputHostname.
317// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected