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

Function TestEventuallyWithTTrue

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

Source from the content-addressed store, hash-verified

2795}
2796
2797func TestEventuallyWithTTrue(t *testing.T) {
2798 mockT := new(errorsCapturingT)
2799
2800 state := 0
2801 condition := func(collect *CollectT) {
2802 defer func() {
2803 state += 1
2804 }()
2805 True(collect, state == 2)
2806 }
2807
2808 True(t, EventuallyWithT(mockT, condition, 100*time.Millisecond, 20*time.Millisecond))
2809 Len(t, mockT.errors, 0)
2810}
2811
2812func TestEventuallyWithT_ConcurrencySafe(t *testing.T) {
2813 mockT := new(errorsCapturingT)

Callers

nothing calls this directly

Calls 3

TrueFunction · 0.70
EventuallyWithTFunction · 0.70
LenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…