xt

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 4 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)

Assert verifies that a condition is true

func (XT) Assertf

func (x XT) Assertf(cond bool, format string, msg ...interface{})

Assertf verifies that a condition is true

func (XT) Contains

func (x XT) Contains(a interface{}, needle string)

Contains verifies that the argument stringed contains a given substring

func (XT) Containsf

func (x XT) Containsf(a interface{}, needle string, format string, msg ...interface{})

Containsf verifies that the argument stringed contains a given substring

func (XT) DeepEqual

func (x XT) DeepEqual(a interface{}, b interface{})

DeepEqual verified that two arguments are deeply equal

func (XT) DeepEqualf

func (x XT) DeepEqualf(a interface{}, b interface{}, format string, msg ...interface{})

DeepEqualf verified that two arguments are deeply equal

func (XT) Equal

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

Equal verifies that the two arguments are equal

func (XT) Equalf

func (x XT) Equalf(a interface{}, b interface{}, format string, msg ...interface{})

Equalf verifies that the two arguments are equal

func (XT) False

func (x XT) False(cond bool)

False verifies that a condition is false

func (XT) Falsef

func (x XT) Falsef(cond bool, format string, msg ...interface{})

Falsef verifies that a condition is false

func (XT) Nil

func (x XT) Nil(a interface{})

Nil verifies that the argument is nil

func (XT) Nilf

func (x XT) Nilf(a interface{}, fmt string, msg ...interface{})

Nilf 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) NotEqualf

func (x XT) NotEqualf(a interface{}, b interface{}, format string, msg ...interface{})

NotEqualf verifies that the two arguments are not equal

func (XT) NotNil

func (x XT) NotNil(a interface{})

NotNil verifies that the argument is not nil

func (XT) NotNilf

func (x XT) NotNilf(a interface{}, fmt string, msg ...interface{})

NotNilf verifies that the argument is nil

func (XT) True

func (x XT) True(cond bool)

True verifies that a condition is true

func (XT) Truef

func (x XT) Truef(cond bool, format string, msg ...interface{})

Truef verifies that a condition is true

Jump to

Keyboard shortcuts

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