MCPcopy
hub / github.com/kopia/kopia / SetNextStdin

Method SetNextStdin

tests/testenv/cli_inproc_runner.go:58–63  ·  view source on GitHub ↗

SetNextStdin sets the stdin to be used on next command execution.

(stdin io.Reader)

Source from the content-addressed store, hash-verified

56
57// SetNextStdin sets the stdin to be used on next command execution.
58func (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().
66func NewInProcRunner(t *testing.T) *CLIInProcRunner {

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65