assert

package
v0.0.0-...-8f66fda Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(tb testing.TB, condition bool, msgAndArgs ...interface{})

func Equals

func Equals(tb testing.TB, expected, actual interface{}, msgAndArgs ...interface{})

func Error

func Error(tb testing.TB, err error, msgAndArgs ...interface{})

func ErrorType

func ErrorType(tb testing.TB, err error, target error, msgAndArgs ...interface{})

func Fail

func Fail(tb testing.TB, err error)

func JsonEqual

func JsonEqual(tb testing.TB, expected, actual []byte, msg ...interface{})

JsonEqual accepts two JSON-containing byte arrays and compares their content equality (rather than their byte equality). This allows ordering to be ignored

func NotEquals

func NotEquals(tb testing.TB, expected, actual interface{}, msgAndArgs ...interface{})

func Success

func Success(tb testing.TB, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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