// Copyright 2015 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.packagenet
// if non-nil, overrides dialTCP.testHookDialTCPfunc(ctxcontext.Context,netstring,laddr,raddr*TCPAddr)(*TCPConn,error)testHookHostsPath="/etc/hosts"testHookLookupIP=func(ctxcontext.Context,fnfunc(context.Context,string)([]IPAddr,error),hoststring,)([]IPAddr,error){returnfn(ctx,host)}