testing

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestMain

func TestMain(m *M)

Types

type M

type M struct {
	// tests is a list of the test names to execute
	Tests []TestToCall
}

M is a test suite.

func (*M) Run

func (m *M) Run() int

Run the test suite.

type T

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

T is a test helper.

func (*T) Error

func (t *T) Error(args ...interface{})

Error is equivalent to Log followed by Fail

func (*T) Fail

func (t *T) Fail()

type TestToCall

type TestToCall struct {
	// Name of the test to call.
	Name string
	// Function reference to the test.
	Func func(*T)
}

TestToCall is a reference to a test that should be called during a test suite run.

Jump to

Keyboard shortcuts

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