teststdio

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package teststdio provides functions to change the global variables os.Stdout and os.Stderr so that they can be read by the test program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureStderr

func CaptureStderr(t *testing.T) (chan string, func())

func CaptureStdout

func CaptureStdout(t *testing.T) (chan string, func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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