(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestNewTimeoutCmd_Sleep(t *testing.T) { |
| 12 | var cmd = executils.NewTimeoutCmd(1*time.Second, "sleep", "3") |
| 13 | cmd.WithStdout() |
| 14 | cmd.WithStderr() |
| 15 | err := cmd.Run() |
| 16 | t.Log("error:", err) |
| 17 | t.Log("stdout:", cmd.Stdout()) |
| 18 | t.Log("stderr:", cmd.Stderr()) |
| 19 | } |
| 20 | |
| 21 | func TestNewTimeoutCmd_Echo(t *testing.T) { |
| 22 | var cmd = executils.NewTimeoutCmd(10*time.Second, "echo", "-n", "hello") |
nothing calls this directly
no test coverage detected