testutils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, expected interface{}, actual interface{}, pads ...string)

AssertEqual is a semantic test assertion for object equality.

func AssertErrorMessage

func AssertErrorMessage(t *testing.T, expected string, err error, pads ...string)

AssertErrorMessage is a semantic test assertion for error "message context" equality.

func AssertFalse

func AssertFalse(t *testing.T, object bool, pads ...string)

AssertFalse is a semantic test assertion for object truthiness.

func AssertLinesMatch

func AssertLinesMatch(t *testing.T, arg interface{}, format string, expected interface{})

AssertLinesMatch breaks up multiple lines and matches each with a regex per.

func AssertMatch

func AssertMatch(t *testing.T, pattern, value string, pads ...string)

AssertMatch is a semantic test assertion for string regex matching. If the pattern is empty we match only with an empty string for simplicity.

func AssertNil

func AssertNil(t *testing.T, object interface{}, pads ...string)

AssertNil is a semantic test assertion for nility.

func AssertNotEqual

func AssertNotEqual(t *testing.T, expected interface{}, actual interface{}, pads ...string)

AssertNotEqual is a semantic test assertion for object equality.

func AssertNotNil

func AssertNotNil(t *testing.T, object interface{}, pads ...string)

AssertNotNil is a semantic test assertion for nility.

func AssertTrue

func AssertTrue(t *testing.T, object bool, pads ...string)

AssertTrue is a semantic test assertion for object truthiness.

Types

This section is empty.

Jump to

Keyboard shortcuts

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