assert

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckStringDivergence

func CheckStringDivergence(t *testing.T, expOut, actOut string)

Very useful when debugging outputs that don't match up.

func NewExpectedError

func NewExpectedError(expect string) *expectedError

Types

type ExpectedMessages

type ExpectedMessages struct {
	// contains filtered or unexported fields
}

func NewExpectedMessages

func NewExpectedMessages(expect ...string) *ExpectedMessages

func (*ExpectedMessages) ContainedIn

func (e *ExpectedMessages) ContainedIn(t *testing.T, actual string)

func (*ExpectedMessages) ContainedInAny

func (e *ExpectedMessages) ContainedInAny(t *testing.T, actual []string)

Check each expected message appears in at least one of the actual strings.

func (*ExpectedMessages) NotContainedIn

func (e *ExpectedMessages) NotContainedIn(t *testing.T, actual string)

Jump to

Keyboard shortcuts

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