SetNextStdin sets the stdin to be used on next command execution.
(stdin io.Reader)
| 56 | |
| 57 | // SetNextStdin sets the stdin to be used on next command execution. |
| 58 | func (e *CLIInProcRunner) SetNextStdin(stdin io.Reader) { |
| 59 | e.mu.Lock() |
| 60 | defer e.mu.Unlock() |
| 61 | |
| 62 | e.nextCommandStdin = stdin |
| 63 | } |
| 64 | |
| 65 | // NewInProcRunner returns a runner that executes CLI subcommands in the current process using cli.RunSubcommand(). |
| 66 | func NewInProcRunner(t *testing.T) *CLIInProcRunner { |