(t *testing.T)
| 33 | } |
| 34 | |
| 35 | func TestExecutor_ExecuteInvalidWorkDir(t *testing.T) { |
| 36 | executor := NewExecutor("ls test", "ls").SetWorkDir("/nonexistent/directory/path") |
| 37 | err := executor.Execute() |
| 38 | if err == nil { |
| 39 | t.Fatal("expected error for nonexistent work dir") |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func TestExecutor_ExecuteNoArgs(t *testing.T) { |
| 44 | executor := NewExecutor("echo test", "echo hello") |
nothing calls this directly
no test coverage detected