assert

package module
v0.0.0-...-4827b9a Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 2 Imported by: 0

README

assert

yet another testing assertion library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(t TestingT, c []Checker, args ...interface{}) (ok bool)

func Any

func Any(t TestingT, c []Checker, args ...interface{}) bool

func Equal

func Equal(t TestingT, exp, act interface{}, args ...interface{}) bool

func Error

func Error(t TestingT, err error, args ...interface{}) bool

func ErrorIs

func ErrorIs(t TestingT, err, target error, args ...interface{}) bool

func Eval

func Eval(t TestingT, c Checker, args ...interface{}) (ok bool)

func Fail

func Fail(t TestingT, args ...interface{})

func False

func False(t TestingT, ok bool, args ...interface{}) bool

func Nil

func Nil(t TestingT, x interface{}, args ...interface{}) bool

func NoError

func NoError(t TestingT, err error, args ...interface{}) bool

func NotEqual

func NotEqual(t TestingT, exp, act interface{}, args ...interface{}) bool

func NotNil

func NotNil(t TestingT, x interface{}, args ...interface{}) bool

func NotZero

func NotZero(t TestingT, val interface{}, args ...interface{}) bool

func True

func True(t TestingT, ok bool, args ...interface{}) bool

func Zero

func Zero(t TestingT, val interface{}, args ...interface{}) bool

Types

type Checker

type Checker = is.Checker

type TestingT

type TestingT interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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