InputCalls gets all the calls that were made to Input. Check the length with: len(mockedPrompter.InputCalls())
()
| 287 | // |
| 288 | // len(mockedPrompter.InputCalls()) |
| 289 | func (mock *PrompterMock) InputCalls() []struct { |
| 290 | Prompt string |
| 291 | DefaultValue string |
| 292 | } { |
| 293 | var calls []struct { |
| 294 | Prompt string |
| 295 | DefaultValue string |
| 296 | } |
| 297 | mock.lockInput.RLock() |
| 298 | calls = mock.calls.Input |
| 299 | mock.lockInput.RUnlock() |
| 300 | return calls |
| 301 | } |
| 302 | |
| 303 | // InputHostname calls InputHostnameFunc. |
| 304 | func (mock *PrompterMock) InputHostname() (string, error) { |
no outgoing calls