MCPcopy
hub / github.com/expr-lang/expr / EventuallyWithTf

Function EventuallyWithTf

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

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

Source from the content-addressed store, hash-verified

188// assert.True(c, externalValue, "expected 'externalValue' to be true")
189// }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false")
190func EventuallyWithTf(t TestingT, condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
191 if h, ok := t.(tHelper); ok {
192 h.Helper()
193 }
194 return EventuallyWithT(t, condition, waitFor, tick, append([]interface{}{msg}, args...)...)
195}
196
197// Exactlyf asserts that two objects are equal in value and type.
198//

Callers 2

EventuallyWithTfFunction · 0.92
EventuallyWithTfMethod · 0.70

Calls 2

EventuallyWithTFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…