assert

package
v1.8.11 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(t testing.TB, v interface{}, sub string)

Contains asserts the fmt.Sprint(v) contains sub.

func Diff

func Diff(v1, v2 interface{}) string

Diff returns a human readable diff between v1 and v2

func Equal

func Equal(t testing.TB, name string, exp, act interface{})

Equal asserts exp == act.

func Error

func Error(t testing.TB, err error)

Error asserts err != nil.

func Success

func Success(t testing.TB, err error)

Success asserts err == nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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