assert

package
v1.70.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EqualerType = reflect.TypeOf((*Equaler)(nil)).Elem()
View Source
var ExtendedEqualerType = reflect.TypeOf((*ExtendedEqualer)(nil)).Elem()
View Source
var StringType = reflect.TypeOf("")

Functions

func Equals

func Equals(expected any, actual any) (string, bool)

Types

type Assert

type Assert interface {
	Errorf(format string, args ...any)
	Error(error)
	Fail()
	True(v bool)
	Nil(v any)
	Equals(expected any, actual any)
	Equalsf(expected any, actual any, format string, args ...any)
	Success(err error)
}

func New

func New(t *testing.T) Assert
type BreadCrumbs string
func (bc BreadCrumbs) Dot(s string) BreadCrumbs
func (bc BreadCrumbs) Format(s string, v ...any) string
func (bc BreadCrumbs) Index(idx int) BreadCrumbs
func (bc BreadCrumbs) Key(s string) BreadCrumbs

type Equaler

type Equaler interface {
	Equals(any) bool
}

type ExtendedEqualer

type ExtendedEqualer interface {
	Equals(any) (string, bool)
}

type Lister

type Lister interface {
	List() []any
}

Jump to

Keyboard shortcuts

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