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

Function Eventuallyf

internal/testify/require/require.go:465–473  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

463//
464// assert.Eventuallyf(t, func() bool { return true; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
465func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) {
466 if h, ok := t.(tHelper); ok {
467 h.Helper()
468 }
469 if assert.Eventuallyf(t, condition, waitFor, tick, msg, args...) {
470 return
471 }
472 t.FailNow()
473}
474
475// Exactly asserts that two objects are equal in value and type.
476//

Callers 1

EventuallyfMethod · 0.70

Calls 3

EventuallyfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…