Documentation
¶
Overview ¶
Package nettest provides network-related testing utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFreePort ¶
NewFreePort is a best-effort helper function that returns a free TCP port that can be used for testing. Note that there is theoretically a TOCTTOU race here: the port may be reoccupied between the time it is released and the time the caller binds to it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.