trait

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertFailingReturnCode

func AssertFailingReturnCode(tb testing.TB, _, _ string, e error)

func AssertJSONReport

func AssertJSONReport(tb testing.TB, stdout, _ string, _ error)

func AssertSuccessfulReturnCode

func AssertSuccessfulReturnCode(tb testing.TB, _, _ string, e error)

func AssertTableReport

func AssertTableReport(tb testing.TB, stdout, _ string, _ error)

Types

type Assertion

type Assertion func(tb testing.TB, stdout, stderr string, err error)

func AssertFileExists

func AssertFileExists(file string) Assertion

func AssertFileOutput

func AssertFileOutput(tb testing.TB, path string, assertions ...Assertion) Assertion

func AssertInOutput

func AssertInOutput(data string) Assertion

func AssertInStderr

func AssertInStderr(data string) Assertion

func AssertInStdout

func AssertInStdout(data string) Assertion

func AssertLoggingLevel

func AssertLoggingLevel(level string) Assertion

func AssertNotInOutput

func AssertNotInOutput(data string) Assertion

func AssertRegexInOutput

func AssertRegexInOutput(re *regexp.Regexp) Assertion

func AssertStderrRowContains

func AssertStderrRowContains(strs ...string) Assertion

func AssertStdoutLengthGreaterThan

func AssertStdoutLengthGreaterThan(length uint) Assertion

func AssertStdoutRowContains

func AssertStdoutRowContains(strs ...string) Assertion

Jump to

Keyboard shortcuts

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