Documentation
¶
Overview ¶
Package testutils has small helpers for tests: allocating a free local port for a server under test and comparing values by their JSON encoding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareJSON ¶ added in v0.20.0
CompareJSON asserts that a and b have identical JSON encodings.
func CreateBindAddr ¶
CreateBindAddr returns "<host>:<free port>" using a port that was free at the time of the call; it panics if none is found after 5 attempts.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.