(t *testing.T)
| 2761 | } |
| 2762 | |
| 2763 | func 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. |
| 2776 | type errorsCapturingT struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…