(t *testing.T)
| 217 | } |
| 218 | |
| 219 | func TestExecutor_WithRetry_NoRetryWhenZero(t *testing.T) { |
| 220 | executor := NewExecutor("[test]", "false") // no WithRetry |
| 221 | err := executor.Execute() |
| 222 | if err == nil { |
| 223 | t.Fatal("expected error from failing command") |
| 224 | } |
| 225 | if strings.Contains(err.Error(), "failed after") { |
| 226 | t.Errorf("error should not mention retry when WithRetry not set, got: %v", err) |
| 227 | } |
| 228 | } |
nothing calls this directly
no test coverage detected