(t *testing.T)
| 3383 | } |
| 3384 | |
| 3385 | func TestEventuallyTrue(t *testing.T) { |
| 3386 | t.Parallel() |
| 3387 | |
| 3388 | state := 0 |
| 3389 | condition := func() bool { |
| 3390 | defer func() { |
| 3391 | state += 1 |
| 3392 | }() |
| 3393 | return state == 2 |
| 3394 | } |
| 3395 | |
| 3396 | True(t, Eventually(t, condition, 100*time.Millisecond, 20*time.Millisecond)) |
| 3397 | } |
| 3398 | |
| 3399 | // errorsCapturingT is a mock implementation of TestingT that captures errors reported with Errorf. |
| 3400 | type errorsCapturingT struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…