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

Method PasswordCalls

internal/prompter/prompter_mock.go:478–488  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

476//
477// len(mockedPrompter.PasswordCalls())
478func (mock *PrompterMock) PasswordCalls() []struct {
479 Prompt string
480} {
481 var calls []struct {
482 Prompt string
483 }
484 mock.lockPassword.RLock()
485 calls = mock.calls.Password
486 mock.lockPassword.RUnlock()
487 return calls
488}
489
490// Select calls SelectFunc.
491func (mock *PrompterMock) Select(prompt string, defaultValue string, options []string) (int, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected