MCPcopy Index your code
hub / github.com/cli/cli / SelectCalls

Method SelectCalls

internal/prompter/prompter_mock.go:514–528  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

512//
513// len(mockedPrompter.SelectCalls())
514func (mock *PrompterMock) SelectCalls() []struct {
515 Prompt string
516 DefaultValue string
517 Options []string
518} {
519 var calls []struct {
520 Prompt string
521 DefaultValue string
522 Options []string
523 }
524 mock.lockSelect.RLock()
525 calls = mock.calls.Select
526 mock.lockSelect.RUnlock()
527 return calls
528}

Callers 1

TestSwitchRunFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestSwitchRunFunction · 0.76