Documentation ¶
Overview ¶
Package testutils contains testing helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PipeListener ¶
type PipeListener struct {
// contains filtered or unexported fields
}
PipeListener is a listener with an unbuffered pipe. Each write will complete only once the other side reads. It should only be created using NewPipeListener.
func NewPipeListener ¶
func NewPipeListener() *PipeListener
NewPipeListener creates a new pipe listener.
func (*PipeListener) Accept ¶
func (p *PipeListener) Accept() (net.Conn, error)
Accept accepts a connection.
Click to show internal directories.
Click to hide internal directories.