src/internal/poll/export_posix_test.go
raw| 1 | // Copyright 2017 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | //go:build unix || windows |
| 6 | |
| 7 | // Export guts for testing on posix. |
| 8 | // Since testing imports os and os imports internal/poll, |
| 9 | // the internal/poll tests can not be in package poll. |
| 10 | |
| 11 | package poll |
| 12 | |
| 13 | func (fd *FD) EOFError(n int, err error) error { |
| 14 | return fd.eofError(n, err) |
| 15 | } |