test

package
v1.18.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatchStdErr

func CatchStdErr(t *testing.T, f func()) string

CatchStdErr returns output to `os.Stderr` from `f` as string https://groups.google.com/d/msg/golang-nuts/hVUtoeyNL7Y/HxEfVr70AwAJ

func CatchStdOut

func CatchStdOut(t *testing.T, f func()) string

CatchStdOut returns output to `os.Stdout` from `f` as string https://groups.google.com/d/msg/golang-nuts/hVUtoeyNL7Y/HxEfVr70AwAJ

func CatchStdOutStdErr

func CatchStdOutStdErr(t *testing.T, f func()) (stdOut string, stdErr string)

CatchStdOutStdErr returns output to `os.Stdout` and `os.Stderr` from `f` as strings

Types

This section is empty.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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