et

package
v0.0.0-...-238d7d8 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(assertor Assertor, t *testing.T)

func AssertInner

func AssertInner(t *testing.T, message string, assertor Assertor, callerSkip int)

func Asserti

func Asserti(assertor Assertor, t *testing.T, message string)

func Expect

func Expect(assertor Assertor, t *testing.T)

func ExpectInner

func ExpectInner(t *testing.T, message string, assertor Assertor, callerSkip int)

func Expecti

func Expecti(assertor Assertor, t *testing.T, message string)

Types

type Assertor

type Assertor interface {
	Assert() error
}

type Equal

type Equal struct {
	Expect interface{}
	Actual interface{}
}

func (*Equal) Assert

func (r *Equal) Assert() error

type False

type False struct {
	Actual bool
}

func (*False) Assert

func (r *False) Assert() error

type Match

type Match struct {
	Regexp string
	Actual string
}

func (*Match) Assert

func (r *Match) Assert() error

type Nil

type Nil struct {
	Actual interface{}
}

func (*Nil) Assert

func (r *Nil) Assert() error

type NoPanic

type NoPanic struct {
	F func()
}

func (*NoPanic) Assert

func (r *NoPanic) Assert() (err error)

type NotEqual

type NotEqual struct {
	Expect interface{}
	Actual interface{}
}

func (*NotEqual) Assert

func (r *NotEqual) Assert() error

type NotMatch

type NotMatch struct {
	Regexp string
	Actual string
}

func (*NotMatch) Assert

func (r *NotMatch) Assert() error

type NotNil

type NotNil struct {
	Actual interface{}
}

func (*NotNil) Assert

func (r *NotNil) Assert() error

type Panic

type Panic struct {
	F func()
}

func (*Panic) Assert

func (r *Panic) Assert() (err error)

type True

type True struct {
	Actual bool
}

func (*True) Assert

func (r *True) Assert() error

Jump to

Keyboard shortcuts

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