(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestExecutor_ExecuteNoArgs(t *testing.T) { |
| 44 | executor := NewExecutor("echo test", "echo hello") |
| 45 | output, err := executor.ExecuteOutput() |
| 46 | if err != nil { |
| 47 | t.Fatalf("unexpected error: %v", err) |
| 48 | } |
| 49 | if output != "hello\n" { |
| 50 | t.Errorf("output = %q, want %q", output, "hello\n") |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func TestExecutor_ExecuteFailingCommand(t *testing.T) { |
| 55 | executor := NewExecutor("false test", "false") |
nothing calls this directly
no test coverage detected