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

Method MultiSelectCalls

internal/prompter/prompter_mock.go:394–408  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

392//
393// len(mockedPrompter.MultiSelectCalls())
394func (mock *PrompterMock) MultiSelectCalls() []struct {
395 Prompt string
396 Defaults []string
397 Options []string
398} {
399 var calls []struct {
400 Prompt string
401 Defaults []string
402 Options []string
403 }
404 mock.lockMultiSelect.RLock()
405 calls = mock.calls.MultiSelect
406 mock.lockMultiSelect.RUnlock()
407 return calls
408}
409
410// MultiSelectWithSearch calls MultiSelectWithSearchFunc.
411func (mock *PrompterMock) MultiSelectWithSearch(prompt string, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) MultiSelectSearchResult) ([]string, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected