(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func TestExecutor_ExecuteWithWorkDir(t *testing.T) { |
| 29 | executor := NewExecutor("ls test", "ls").SetWorkDir(os.TempDir()) |
| 30 | if err := executor.Execute(); err != nil { |
| 31 | t.Fatalf("unexpected error: %v", err) |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestExecutor_ExecuteInvalidWorkDir(t *testing.T) { |
| 36 | executor := NewExecutor("ls test", "ls").SetWorkDir("/nonexistent/directory/path") |
nothing calls this directly
no test coverage detected