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

Method EventuallyWithTf

internal/testify/assert/assertion_forward.go:365–370  ·  view source on GitHub ↗

EventuallyWithTf 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 cons

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

Source from the content-addressed store, hash-verified

363// assert.True(c, externalValue, "expected 'externalValue' to be true")
364// }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false")
365func (a *Assertions) EventuallyWithTf(condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
366 if h, ok := a.t.(tHelper); ok {
367 h.Helper()
368 }
369 return EventuallyWithTf(a.t, condition, waitFor, tick, msg, args...)
370}
371
372// Eventuallyf asserts that given condition will be met in waitFor time,
373// periodically checking target function each tick.

Callers

nothing calls this directly

Calls 2

EventuallyWithTfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected