(t *testing.T, console *expect.Console)
| 893 | } |
| 894 | |
| 895 | func newTestSurveyPrompter(t *testing.T, console *expect.Console) prompter.Prompter { |
| 896 | t.Helper() |
| 897 | |
| 898 | io := newTestVirtualTerminalIOStreams(t, console) |
| 899 | io.SetAccessiblePrompterEnabled(false) |
| 900 | |
| 901 | return prompter.New(editorCmd, io) |
| 902 | } |
| 903 | |
| 904 | // failOnExpectError adds an observer that will fail the test in a standardised way |
| 905 | // if any expectation on the command output fails, without requiring an explicit |
no test coverage detected