MCPcopy Create free account
hub / github.com/celer-pkg/celer / TestExecutor_WithRetry_NoRetryWhenZero

Function TestExecutor_WithRetry_NoRetryWhenZero

pkgs/cmd/exec_test.go:219–228  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

217}
218
219func 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}

Callers

nothing calls this directly

Calls 3

NewExecutorFunction · 0.85
ExecuteMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected