MultiSelectCalls gets all the calls that were made to MultiSelect. Check the length with: len(mockedPrompter.MultiSelectCalls())
()
| 392 | // |
| 393 | // len(mockedPrompter.MultiSelectCalls()) |
| 394 | func (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. |
| 411 | func (mock *PrompterMock) MultiSelectWithSearch(prompt string, searchPrompt string, defaults []string, persistentOptions []string, searchFunc func(string) MultiSelectSearchResult) ([]string, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected