(t *testing.T)
| 114 | } |
| 115 | |
| 116 | func TestPollClose(t *testing.T) { |
| 117 | p, err := openDefaultPoll() |
| 118 | MustNil(t, err) |
| 119 | var wg sync.WaitGroup |
| 120 | wg.Add(1) |
| 121 | go func() { |
| 122 | p.Wait() |
| 123 | wg.Done() |
| 124 | }() |
| 125 | p.Close() |
| 126 | wg.Wait() |
| 127 | } |
| 128 | |
| 129 | func BenchmarkPollMod(b *testing.B) { |
| 130 | b.StopTimer() |
nothing calls this directly
no test coverage detected
searching dependent graphs…