testutils

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureStdout

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

func DoMapsMatch

func DoMapsMatch(t *testing.T, expectedMap map[string]interface{}, testMap map[string]interface{})

func ExpectBool

func ExpectBool(t *testing.T, expectedBool bool, testBool bool)

func ExpectError

func ExpectError(t *testing.T, expectedError error, testError error)

func ExpectErrorContainingText

func ExpectErrorContainingText(t *testing.T, expectedSubtext string, testError error)

func ExpectPanic

func ExpectPanic(t *testing.T, fn func())

func ExpectPanicError

func ExpectPanicError(t *testing.T, expectedError error, fn func())

func ExpectString

func ExpectString(t *testing.T, expectedStr string, testStr string)

func ExpectValue

func ExpectValue(t *testing.T, expectedVal interface{}, testVal interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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