assert

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Update = flag.Bool("update", false, "update .golden files")

Functions

func Assert

func Assert(tb testing.TB, condition bool, msg string, v ...interface{})

assert fails the test if the condition is false.

func AssertGoldenFile

func AssertGoldenFile(tb testing.TB, testName string, actual []byte)

func Equals

func Equals(tb testing.TB, exp, act interface{})

equals fails the test if exp is not equal to act.

func Fail

func Fail(tb testing.TB, msg string, v ...interface{})

func FailInStub

func FailInStub(tb testing.TB, stubStacks int, msg string, v ...interface{})

func NotOk

func NotOk(tb testing.TB, err error, expecteError string)

not ok fails the test if an err is nil.

func Ok

func Ok(tb testing.TB, err error)

ok fails the test if an err is not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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