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

Function Eventuallyf

internal/testify/assert/assertion_format.go:165–170  ·  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

163//
164// assert.Eventuallyf(t, func() bool { return true; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
165func Eventuallyf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
166 if h, ok := t.(tHelper); ok {
167 h.Helper()
168 }
169 return Eventually(t, condition, waitFor, tick, append([]interface{}{msg}, args...)...)
170}
171
172// EventuallyWithTf asserts that given condition will be met in waitFor time,
173// periodically checking target function each tick. In contrast to Eventually,

Callers 2

EventuallyfFunction · 0.92
EventuallyfMethod · 0.70

Calls 2

EventuallyFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…