Skip to content

Commit

Permalink
fix impl
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi committed Nov 29, 2023
1 parent 6e49fec commit c59f0e3
Show file tree
Hide file tree
Showing 3 changed files with 258 additions and 82 deletions.
4 changes: 4 additions & 0 deletions exec/fake/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ type Command struct {
unexpected []Response
stdout io.Writer
stderr io.Writer
stdin io.Reader
cnt int
}

Expand All @@ -104,6 +105,9 @@ func (c *Command) SetStdout(w io.Writer) { c.stdout = w }
// Stderr sets standard err to w.
func (c *Command) SetStderr(w io.Writer) { c.stderr = w }

// Stdin sets standard in to r.
func (c *Command) SetStdin(r io.Reader) { c.stdin = r }

// LogCommand is called with the string representation of the command that is
// running. The test program can optionally set this to their own function.
var LogCommand = func(string) {}
Expand Down
Loading

0 comments on commit c59f0e3

Please sign in to comment.