Documentation
¶
Index ¶
- func CaptureStdout(t *testing.T, testFunc func()) *os.File
- func GetTCPPort(conn *net.TCPListener) uint16
- func GetUDPPort(conn *net.UDPConn) uint16
- func TakesAtleast(t *testing.T, duration time.Duration, testFunc func())
- func WithBytesInStdIn(t *testing.T, bytes []byte, testFunc func())
- func WithTempFile(t *testing.T, testFunc func(string))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdout ¶
CaptureStdout captures and returns an os.File that contains all content written to stdout during the provided test function stdout is returned to normal after this function
func GetTCPPort ¶
func GetTCPPort(conn *net.TCPListener) uint16
func GetUDPPort ¶
func TakesAtleast ¶
TakesAtleast asserts that the provided func thats atleast the provided duration or longer to complete
func WithBytesInStdIn ¶
WithBytesInStdIn pre-load stdin with the provided bytes before running the provided test reverts std in after the test is complete
func WithTempFile ¶
WithTempFile helper function to create a temp file before calling a method that accepts the temp file name the temp file is removed after this function finishes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.