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

Method Eventually

internal/testify/assert/assertion_forward.go:315–320  ·  view source on GitHub ↗

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

(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

313//
314// a.Eventually(func() bool { return true; }, time.Second, 10*time.Millisecond)
315func (a *Assertions) Eventually(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool {
316 if h, ok := a.t.(tHelper); ok {
317 h.Helper()
318 }
319 return Eventually(a.t, condition, waitFor, tick, msgAndArgs...)
320}
321
322// EventuallyWithT asserts that given condition will be met in waitFor time,
323// periodically checking target function each tick. In contrast to Eventually,

Callers

nothing calls this directly

Calls 2

EventuallyFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected