1 // Copyright 2015 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.
10 // if non-nil, overrides dialTCP.
11 testHookDialTCP
func(ctx context
.Context
, net
string, laddr
, raddr
*TCPAddr
) (*TCPConn
, error
)
13 testHookHostsPath
= "/etc/hosts"
14 testHookLookupIP
= func(
16 fn
func(context
.Context
, string) ([]IPAddr
, error
),
21 testHookSetKeepAlive
= func() {}