proof

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 5 Imported by: 0

README

proof

A lightweight Go testing framework

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recover

func Recover(t T)

Types

type Prover

type Prover struct {
	T T
	// contains filtered or unexported fields
}

func New

func New(t T) *Prover

func (*Prover) ContainedBySlice

func (p *Prover) ContainedBySlice(object interface{}, slice interface{})

func (*Prover) Equal

func (p *Prover) Equal(x, y interface{})

func (*Prover) EqualsAny added in v0.0.2

func (p *Prover) EqualsAny(x interface{}, y ...interface{})

func (*Prover) Err

func (p *Prover) Err(err error)

func (*Prover) False

func (p *Prover) False(b bool)

func (*Prover) Lax

func (p *Prover) Lax(fn func(lax *Prover))

func (*Prover) Len

func (p *Prover) Len(o interface{}, length int)

func (*Prover) Nil

func (p *Prover) Nil(o interface{})

func (*Prover) NotEqual

func (p *Prover) NotEqual(x, y interface{})

func (*Prover) NotErr

func (p *Prover) NotErr(err error)

func (*Prover) NotNil

func (p *Prover) NotNil(o interface{})

func (*Prover) NotZero

func (p *Prover) NotZero(o interface{})

func (*Prover) Panic

func (p *Prover) Panic(f func())

func (*Prover) Retry

func (p *Prover) Retry(duration time.Duration, f func() bool)

func (*Prover) True

func (p *Prover) True(b bool)

func (*Prover) Zero

func (p *Prover) Zero(o interface{})

type T

type T interface {
	Log(args ...interface{})
	Error(args ...interface{})
	FailNow()
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Failed() bool
	Helper()
}

Jump to

Keyboard shortcuts

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