iotest

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

func Writer(t testing.TB) io.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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL