(t *testing.T, console *expect.Console)
| 866 | } |
| 867 | |
| 868 | func newTestVirtualTerminalIOStreams(t *testing.T, console *expect.Console) *iostreams.IOStreams { |
| 869 | t.Helper() |
| 870 | io := &iostreams.IOStreams{ |
| 871 | In: console.Tty(), |
| 872 | Out: console.Tty(), |
| 873 | ErrOut: console.Tty(), |
| 874 | } |
| 875 | io.SetStdinTTY(false) |
| 876 | io.SetStdoutTTY(false) |
| 877 | io.SetStderrTTY(false) |
| 878 | return io |
| 879 | } |
| 880 | |
| 881 | // `echo` is chosen as the editor command because it immediately returns |
| 882 | // a success exit code, returns an empty string, doesn't require any user input, |
no test coverage detected