MCPcopy
hub / github.com/stretchr/testify / TestEventuallyTrue

Function TestEventuallyTrue

assert/assertions_test.go:3385–3397  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3383}
3384
3385func TestEventuallyTrue(t *testing.T) {
3386 t.Parallel()
3387
3388 state := 0
3389 condition := func() bool {
3390 defer func() {
3391 state += 1
3392 }()
3393 return state == 2
3394 }
3395
3396 True(t, Eventually(t, condition, 100*time.Millisecond, 20*time.Millisecond))
3397}
3398
3399// errorsCapturingT is a mock implementation of TestingT that captures errors reported with Errorf.
3400type errorsCapturingT struct {

Callers

nothing calls this directly

Calls 2

TrueFunction · 0.70
EventuallyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…