(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestExecutor_ExecuteOutput(t *testing.T) { |
| 11 | executor := NewExecutor("echo test", "echo", "hello world") |
| 12 | output, err := executor.ExecuteOutput() |
| 13 | if err != nil { |
| 14 | t.Fatalf("unexpected error: %v", err) |
| 15 | } |
| 16 | if output != "hello world\n" { |
| 17 | t.Errorf("output = %q, want %q", output, "hello world\n") |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | func TestExecutor_Execute(t *testing.T) { |
| 22 | executor := NewExecutor("echo test", "echo", "hello") |
nothing calls this directly
no test coverage detected