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

Method MultiSelect

internal/prompter/prompter_mock.go:371–388  ·  view source on GitHub ↗

MultiSelect calls MultiSelectFunc.

(prompt string, defaults []string, options []string)

Source from the content-addressed store, hash-verified

369
370// MultiSelect calls MultiSelectFunc.
371func (mock *PrompterMock) MultiSelect(prompt string, defaults []string, options []string) ([]int, error) {
372 if mock.MultiSelectFunc == nil {
373 panic("PrompterMock.MultiSelectFunc: method is nil but Prompter.MultiSelect was just called")
374 }
375 callInfo := struct {
376 Prompt string
377 Defaults []string
378 Options []string
379 }{
380 Prompt: prompt,
381 Defaults: defaults,
382 Options: options,
383 }
384 mock.lockMultiSelect.Lock()
385 mock.calls.MultiSelect = append(mock.calls.MultiSelect, callInfo)
386 mock.lockMultiSelect.Unlock()
387 return mock.MultiSelectFunc(prompt, defaults, options)
388}
389
390// MultiSelectCalls gets all the calls that were made to MultiSelect.
391// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected