xt

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XT

type XT struct {
	*testing.T
}

XT is a testing.T - extension, adding a tiny bit of convenience, making tests more fun to write.

func X

func X(t *testing.T) XT

X wraps a *testing.T and extends its functionality

func (XT) Assert

func (x XT) Assert(cond bool, msg ...interface{})

Assert verifies that a condition is true

func (XT) Equal

func (x XT) Equal(a interface{}, b interface{}, msg ...interface{})

Equal verifies that the two arguments are equal

func (XT) False

func (x XT) False(cond bool, msg ...interface{})

False verifies that a condition is false

func (XT) Nil

func (x XT) Nil(a interface{}, msg ...interface{})

Nil verifies that the argument is nil

func (XT) NotEqual

func (x XT) NotEqual(a interface{}, b interface{}, msg ...interface{})

NotEqual verifies that the two arguments are not equal

func (XT) NotNil

func (x XT) NotNil(a interface{}, msg ...interface{})

NotNil verifies that the argument is not nil

func (XT) True

func (x XT) True(cond bool, msg ...interface{})

True verifies that a condition is true

Jump to

Keyboard shortcuts

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