blob: 63e8b93f637fb927011f7d2f6db4a6d0228fa877 [file] [log] [blame]
// +build OMIT
package main
import (
"bytes"
"net"
)
func handleConn(conn net.Conn) {
// does something that should be tested.
}
type loopBack struct {
net.Conn
buf bytes.Buffer
}
func (c *loopBack) Read(b []byte) (int, error) {
return c.buf.Read(b)
}
func (c *loopBack) Write(b []byte) (int, error) {
return c.buf.Write(b)
}