test_output

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCombinedOutput

func AssertCombinedOutput(t *testing.T, expectedStdOut string, expectedStdErr string, f func())

AssertCombinedOutput tests the output of func f, asserting stdout/stderr matches expectedStdOut/expectedStdErr

func AssertCombinedOutputFunc

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

AssertCombinedOutputFunc tests the output of func f, asserting using func assertFunc

func AssertErrorLevel

func AssertErrorLevel(t *testing.T, f func())

AssertErrorLevel tests that exit code is equal to 1

func AssertErrorLevelFunc

func AssertErrorLevelFunc(t *testing.T, level int, assertFunc func(stdErr string), f func())

AssertErrorLevelFunc tests the output of func f, asserting using func assertFunc and exit code is equal to level

func AssertErrorLevelOutput

func AssertErrorLevelOutput(t *testing.T, level int, expected string, f func())

AssertErrorLevelOutput tests the output of func f, asserting stderr matches expected and exit code is equal to 1

func AssertErrorOutput

func AssertErrorOutput(t *testing.T, expected string, f func())

AssertErrorOutput tests the output of func f, asserting stderr matches expected

func AssertErrorOutputFunc

func AssertErrorOutputFunc(t *testing.T, assertFunc func(stdErr string), f func())

AssertErrorOutputFunc tests the output of func f, asserting using func assertFunc

func AssertOutput

func AssertOutput(t *testing.T, expected string, f func())

AssertOutput tests the output of func f, asserting stdout matches expected

func AssertOutputFunc

func AssertOutputFunc(t *testing.T, assertFunc func(stdErr string), f func())

AssertOutputFunc tests the output of func f, asserting using func assertFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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