assert

package module
v0.0.0-...-2b19fd4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2013 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Within

func Within(t *testing.T, f func(*Test))

Types

type FTest

type FTest struct {
	T *testing.T
	// contains filtered or unexported fields
}

func (*FTest) AreEqual

func (test *FTest) AreEqual(x, y interface{}, msgFormat string, msgs ...interface{})

Equality test

func (*FTest) AreNotEqual

func (test *FTest) AreNotEqual(x, y interface{}, msgFormat string, msgs ...interface{})

func (*FTest) EndsWith

func (test *FTest) EndsWith(s, post, msgFormat string, msgs ...interface{})

func (*FTest) IsFalse

func (test *FTest) IsFalse(b bool, msgFormat string, msgs ...interface{})

func (*FTest) IsNil

func (test *FTest) IsNil(v interface{}, msgFormat string, msgs ...interface{})

Nil Format tests

func (*FTest) IsNotNil

func (test *FTest) IsNotNil(v interface{}, msgFormat string, msgs ...interface{})

func (*FTest) IsTrue

func (test *FTest) IsTrue(b bool, msgFormat string, msgs ...interface{})

bool tests

func (*FTest) Matches

func (test *FTest) Matches(s, regex, msgFormat string, msgs ...interface{})

func (*FTest) NotMatches

func (test *FTest) NotMatches(s, regex, msgFormat string, msgs ...interface{})

func (*FTest) StartsWith

func (test *FTest) StartsWith(s, pre, msgFormat string, msgs ...interface{})

String tests

type Test

type Test struct {
	T *testing.T
	F *FTest
	// contains filtered or unexported fields
}

func (*Test) AreEqual

func (test *Test) AreEqual(x, y interface{}, msgs ...interface{})

Equality test

func (*Test) AreNotEqual

func (test *Test) AreNotEqual(x, y interface{}, msgs ...interface{})

func (*Test) EndsWith

func (test *Test) EndsWith(s, post string, msgs ...interface{})

func (*Test) IsError

func (test *Test) IsError(e error)

func (*Test) IsFalse

func (test *Test) IsFalse(b bool, msgs ...interface{})

func (*Test) IsNil

func (test *Test) IsNil(v interface{}, msgs ...interface{})

Nil tests

func (*Test) IsNotNil

func (test *Test) IsNotNil(v interface{}, msgs ...interface{})

func (*Test) IsTrue

func (test *Test) IsTrue(b bool, msgs ...interface{})

bool tests

func (*Test) Matches

func (test *Test) Matches(s, regex string, msgs ...interface{})

func (*Test) NoError

func (test *Test) NoError(e error)

error Tests

func (*Test) NotMatches

func (test *Test) NotMatches(s, regex string, msgs ...interface{})

func (*Test) Section

func (test *Test) Section(s string)

func (*Test) StartsWith

func (test *Test) StartsWith(s, pre string, msgs ...interface{})

String tests

Jump to

Keyboard shortcuts

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