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

Function TestEventuallyWithTFalse

require/requirements_test.go:761–772  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

759}
760
761func TestEventuallyWithTFalse(t *testing.T) {
762 t.Parallel()
763
764 mockT := new(MockT)
765
766 condition := func(collect *assert.CollectT) {
767 True(collect, false)
768 }
769
770 EventuallyWithT(mockT, condition, 100*time.Millisecond, 20*time.Millisecond)
771 True(t, mockT.Failed, "Check should fail")
772}
773
774func TestEventuallyWithTTrue(t *testing.T) {
775 t.Parallel()

Callers

nothing calls this directly

Calls 2

TrueFunction · 0.70
EventuallyWithTFunction · 0.70

Tested by

no test coverage detected