(ch chan bool, timeout time.Duration)
| 53 | } |
| 54 | |
| 55 | func WaitTime(ch chan bool, timeout time.Duration) error { |
| 56 | select { |
| 57 | case <-ch: |
| 58 | return nil |
| 59 | case <-time.After(timeout): |
| 60 | } |
| 61 | return errors.New("timeout") |
| 62 | } |
| 63 | |
| 64 | func stackFatalf(t *testing.T, f string, args ...any) { |
| 65 | lines := make([]string, 0, 32) |
no outgoing calls
no test coverage detected