InputHostname calls InputHostnameFunc.
()
| 302 | |
| 303 | // InputHostname calls InputHostnameFunc. |
| 304 | func (mock *PrompterMock) InputHostname() (string, error) { |
| 305 | if mock.InputHostnameFunc == nil { |
| 306 | panic("PrompterMock.InputHostnameFunc: method is nil but Prompter.InputHostname was just called") |
| 307 | } |
| 308 | callInfo := struct { |
| 309 | }{} |
| 310 | mock.lockInputHostname.Lock() |
| 311 | mock.calls.InputHostname = append(mock.calls.InputHostname, callInfo) |
| 312 | mock.lockInputHostname.Unlock() |
| 313 | return mock.InputHostnameFunc() |
| 314 | } |
| 315 | |
| 316 | // InputHostnameCalls gets all the calls that were made to InputHostname. |
| 317 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected