MCPcopy Index your code
hub / github.com/expr-lang/expr / Eventuallyf

Method Eventuallyf

internal/testify/assert/assertion_forward.go:376–381  ·  view source on GitHub ↗

Eventuallyf asserts that given condition will be met in waitFor time, periodically checking target function each tick. a.Eventuallyf(func() bool { return true; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")

(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

374//
375// a.Eventuallyf(func() bool { return true; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
376func (a *Assertions) Eventuallyf(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
377 if h, ok := a.t.(tHelper); ok {
378 h.Helper()
379 }
380 return Eventuallyf(a.t, condition, waitFor, tick, msg, args...)
381}
382
383// Exactly asserts that two objects are equal in value and type.
384//

Callers

nothing calls this directly

Calls 2

EventuallyfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected