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

Function TestEventuallyWithTFalse

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

Source from the content-addressed store, hash-verified

2784func (t *errorsCapturingT) Helper() {}
2785
2786func TestEventuallyWithTFalse(t *testing.T) {
2787 mockT := new(errorsCapturingT)
2788
2789 condition := func(collect *CollectT) {
2790 Fail(collect, "condition fixed failure")
2791 }
2792
2793 False(t, EventuallyWithT(mockT, condition, 100*time.Millisecond, 20*time.Millisecond))
2794 Len(t, mockT.errors, 2)
2795}
2796
2797func TestEventuallyWithTTrue(t *testing.T) {
2798 mockT := new(errorsCapturingT)

Callers

nothing calls this directly

Calls 4

FailFunction · 0.70
FalseFunction · 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…