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

Method EventuallyWithT

internal/testify/require/require_forward.go:342–347  ·  view source on GitHub ↗

EventuallyWithT asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually, it supplies a CollectT to the condition function, so that the condition function can use the CollectT to call other assertions. The condition is consi

(condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

340// assert.True(c, externalValue, "expected 'externalValue' to be true")
341// }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false")
342func (a *Assertions) EventuallyWithT(condition func(collect *assert.CollectT), waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
343 if h, ok := a.t.(tHelper); ok {
344 h.Helper()
345 }
346 EventuallyWithT(a.t, condition, waitFor, tick, msgAndArgs...)
347}
348
349// EventuallyWithTf asserts that given condition will be met in waitFor time,
350// periodically checking target function each tick. In contrast to Eventually,

Callers

nothing calls this directly

Calls 2

EventuallyWithTFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected