Documentation ¶
Overview ¶
Package iotest provides utilities for testing IO-related code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Writer ¶
Writer builds and returns an io.Writer that writes messages to the given testing.TB. It ensures that each line is logged separately.
Any trailing buffered text that does not end with a newline is flushed when the test finishes.
The returned writer is safe for concurrent use from multiple parallel tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.