assert

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 4 Imported by: 0

README

assert

go utilities for making and handling conditional assertions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNot

func MustNot(cnd bool, msg string, args ...interface{})

Types

type Assertions

type Assertions struct {
	*assert.Assertions
}

func Must

func Must() *Assertions

func New

func New(h Handler) *Assertions

type Handler

type Handler interface {
	assert.TestingT
}

type Logger

type Logger interface {
	Debug() *Assertions
	Info() *Assertions
	Warn() *Assertions
	Error() *Assertions
	Panic() *Assertions
	Fatal() *Assertions
}

func NewLogger

func NewLogger(l logging.Logger) Logger

Jump to

Keyboard shortcuts

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