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

Function TestEventuallyTrue

internal/testify/assert/assertions_test.go:2763–2773  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2761}
2762
2763func TestEventuallyTrue(t *testing.T) {
2764 state := 0
2765 condition := func() bool {
2766 defer func() {
2767 state += 1
2768 }()
2769 return state == 2
2770 }
2771
2772 True(t, Eventually(t, condition, 100*time.Millisecond, 20*time.Millisecond))
2773}
2774
2775// errorsCapturingT is a mock implementation of TestingT that captures errors reported with Errorf.
2776type 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…