func getIPNet(cidr string) *net.IPNet { … } func TestIPNetEqual(t *testing.T) { … } func TestIsConnectionRefused(t *testing.T) { … } type tcpLB … func (lb *tcpLB) handleConnection(in net.Conn, stopCh chan struct{ … } func (lb *tcpLB) serve(stopCh chan struct{ … } func newLB(t *testing.T, serverURL string) *tcpLB { … } func TestIsConnectionReset(t *testing.T) { … }