PasswordCalls gets all the calls that were made to Password. Check the length with: len(mockedPrompter.PasswordCalls())
()
| 476 | // |
| 477 | // len(mockedPrompter.PasswordCalls()) |
| 478 | func (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. |
| 491 | func (mock *PrompterMock) Select(prompt string, defaultValue string, options []string) (int, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected