(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestCommandBadProgram(t *testing.T) { |
| 44 | ctx := log.Testing(t) |
| 45 | err := shell.Command("not#a#program", "test").Run(ctx) |
| 46 | assert.For(ctx, "err").ThatError(err).HasMessage(`Failed to start process |
| 47 | Cause: exec: "not#a#program": executable file not found in $PATH`) |
| 48 | } |
| 49 | |
| 50 | func TestCommandBadDir(t *testing.T) { |
| 51 | ctx := log.Testing(t) |
nothing calls this directly
no test coverage detected