()
| 58 | } |
| 59 | |
| 60 | func (f *fakeReader) close() { |
| 61 | f.mu.Lock() |
| 62 | defer f.mu.Unlock() |
| 63 | if f.closed { |
| 64 | return |
| 65 | } |
| 66 | f.closed = true |
| 67 | close(f.ch) |
| 68 | } |
| 69 | |
| 70 | func TestWSReader(t *testing.T) { |
| 71 | mr := &fakeReader{ch: make(chan []byte, 1)} |
no outgoing calls
no test coverage detected