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

Method InputCalls

internal/prompter/prompter_mock.go:289–301  ·  view source on GitHub ↗

InputCalls gets all the calls that were made to Input. Check the length with: len(mockedPrompter.InputCalls())

()

Source from the content-addressed store, hash-verified

287//
288// len(mockedPrompter.InputCalls())
289func (mock *PrompterMock) InputCalls() []struct {
290 Prompt string
291 DefaultValue string
292} {
293 var calls []struct {
294 Prompt string
295 DefaultValue string
296 }
297 mock.lockInput.RLock()
298 calls = mock.calls.Input
299 mock.lockInput.RUnlock()
300 return calls
301}
302
303// InputHostname calls InputHostnameFunc.
304func (mock *PrompterMock) InputHostname() (string, error) {

Callers 1

Test_createRunFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_createRunFunction · 0.64