(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestExecutor_Execute(t *testing.T) { |
| 22 | executor := NewExecutor("echo test", "echo", "hello") |
| 23 | if err := executor.Execute(); err != nil { |
| 24 | t.Fatalf("unexpected error: %v", err) |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func TestExecutor_ExecuteWithWorkDir(t *testing.T) { |
| 29 | executor := NewExecutor("ls test", "ls").SetWorkDir(os.TempDir()) |
nothing calls this directly
no test coverage detected