(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestNewTimeoutCmd_Echo(t *testing.T) { |
| 22 | var cmd = executils.NewTimeoutCmd(10*time.Second, "echo", "-n", "hello") |
| 23 | cmd.WithStdout() |
| 24 | cmd.WithStderr() |
| 25 | err := cmd.Run() |
| 26 | t.Log("error:", err) |
| 27 | t.Log("stdout:", cmd.Stdout()) |
| 28 | t.Log("stderr:", cmd.Stderr()) |
| 29 | } |
| 30 | |
| 31 | func TestNewTimeoutCmd_Echo2(t *testing.T) { |
| 32 | var cmd = executils.NewCmd("echo", "hello") |
nothing calls this directly
no test coverage detected