()
| 70 | } |
| 71 | |
| 72 | func (t *TestModel) closedError() error { |
| 73 | select { |
| 74 | case <-t.closedCh: |
| 75 | return t.closedErr |
| 76 | case <-time.After(1 * time.Second): |
| 77 | return nil // Timeout |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | type fakeRequestResponse struct { |
| 82 | data []byte |
no outgoing calls
no test coverage detected