test

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticErr = errors.New("static test error")

StaticErr is an error used for testing purposes only

Functions

func AssertBytesEqual

func AssertBytesEqual(t *testing.T, a, b []byte, contextArgs ...interface{}) bool

func AssertBytesNotEqual

func AssertBytesNotEqual(t *testing.T, a, b []byte, contextArgs ...interface{}) bool

func AssertEqual

func AssertEqual(t *testing.T, a, b interface{}, contextArgs ...interface{}) bool

func AssertEqualAny

func AssertEqualAny(t *testing.T, a interface{}, possibilities []interface{}, contextArgs ...interface{}) bool

func AssertError

func AssertError(t *testing.T, err error, contextArgs ...interface{}) bool

func AssertFalse

func AssertFalse(t *testing.T, b bool, contextArgs ...interface{}) bool

func AssertIsError

func AssertIsError(t *testing.T, err error, target error, contextArgs ...interface{}) bool

func AssertIsNotError

func AssertIsNotError(t *testing.T, err error, target error, contextArgs ...interface{}) bool

func AssertNil

func AssertNil(t *testing.T, a interface{}, contextArgs ...interface{}) bool

func AssertNoError

func AssertNoError(t *testing.T, err error, contextArgs ...interface{}) bool

func AssertNoErrorFatal

func AssertNoErrorFatal(t *testing.T, err error, contextArgs ...interface{}) bool

func AssertNotEqual

func AssertNotEqual(t *testing.T, a, b interface{}, contextArgs ...interface{}) bool

func AssertNotEqualShallow

func AssertNotEqualShallow(t *testing.T, a, b interface{}, contextArgs ...interface{}) bool

func AssertNotNil

func AssertNotNil(t *testing.T, a interface{}, contextArgs ...interface{}) bool

func AssertTrue

func AssertTrue(t *testing.T, b bool, contextArgs ...interface{}) bool

Types

type Logger

type Logger struct{}

func (Logger) Debug

func (Logger) Debug(_args ...interface{})

func (Logger) Debugf

func (Logger) Debugf(_template string, _args ...interface{})

func (Logger) Error

func (Logger) Error(_args ...interface{})

func (Logger) Errorf

func (Logger) Errorf(_template string, _args ...interface{})

Jump to

Keyboard shortcuts

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