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

Function TestEventuallyWithTFalse

assert/assertions_test.go:3411–3422  ·  assert/assertions_test.go::TestEventuallyWithTFalse
(t *testing.T)

Source from the content-addressed store, hash-verified

3409}
3410
3411func TestEventuallyWithTFalse(t *testing.T) {
3412 t.Parallel()
3413
3414 mockT := new(errorsCapturingT)
3415
3416 condition := func(collect *CollectT) {
3417 Fail(collect, "condition fixed failure")
3418 }
3419
3420 False(t, EventuallyWithT(mockT, condition, 100*time.Millisecond, 20*time.Millisecond))
3421 Len(t, mockT.errors, 2)
3422}
3423
3424func TestEventuallyWithTTrue(t *testing.T) {
3425 t.Parallel()

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