Documentation ¶ Index ¶ func New(t *testing.T) (net.Listener, string, int) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(t *testing.T) (net.Listener, string, int) New creates a TCP listener on a random port and returns the listener, the address and the port of this listener. It also registers a cleanup function to close the listener when the test ends. Types ¶ This section is empty. Source Files ¶ View all Source files listener.go Click to show internal directories. Click to hide internal directories.