iotest

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package iotest provides IO-related testing utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Writer

func Writer(t Logger) io.Writer

Writer builds an io.Writer that writes to the given testing.TB.

Types

type Logger added in v0.11.0

type Logger interface {
	Logf(format string, args ...interface{})
}

Logger is the destination for messages from the Writer. It is satisfied by *testing.T and *testing.B.

Jump to

Keyboard shortcuts

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