(t *testing.T)
| 34 | } |
| 35 | |
| 36 | func TestCommandFailed(t *testing.T) { |
| 37 | ctx := log.Testing(t) |
| 38 | err := shell.Command("false").Run(ctx) |
| 39 | assert.For(ctx, "err").ThatError(err).HasMessage(`Process returned error |
| 40 | Cause: exit status 1`) |
| 41 | } |
| 42 | |
| 43 | func TestCommandBadProgram(t *testing.T) { |
| 44 | ctx := log.Testing(t) |
nothing calls this directly
no test coverage detected