test

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Alias
	BeTrue  = AssertTrue
	BeNil   = AssertNil
	BeEqual = AssertEqual
)

Functions

func AssertEqual

func AssertEqual(t *testing.T, resultValue interface{}, expectValue interface{})

assert a equals b, or show code where error

func AssertNil

func AssertNil(t *testing.T, resultValue interface{})

func AssertTrue

func AssertTrue(t *testing.T, resultValue interface{})

Types

type Assert

type Assert struct {
	T *testing.T
}

func A

func A(t *testing.T) *Assert

func (*Assert) Equal

func (a *Assert) Equal(actualValue interface{}, expectValue interface{})

func (*Assert) Must

func (a *Assert) Must(condition interface{})

func (*Assert) True

func (a *Assert) True(actualValue interface{})

type TestRunner

type TestRunner struct {
	*testing.T
}

func TR

func TR(t *testing.T) *TestRunner

func (*TestRunner) Add

func (this *TestRunner) Add(fn func(t *Assert))

Jump to

Keyboard shortcuts

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