testing

package
v0.0.0-...-761941a Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expect

func Expect(t *testing.T, v, m interface{})

Expect uses reflect.DeepEqual to evaluate the equality of two values unless the objects both satisfy the Equaler interface

func Falsy

func Falsy(t *testing.T, name string, v bool)

Falsy expects a true return value always

func StrictExpect

func StrictExpect(t *testing.T, v, m interface{})

StrictExpect uses == to evaluate the equality of two values unless the interface matches the Equaler interface

func Truthy

func Truthy(t *testing.T, name string, v bool)

Truthy expects a true return value always

Types

type Equaler

type Equaler interface {
	Equal(Equaler) bool
}

Equaler defines a interface for handling equality

Jump to

Keyboard shortcuts

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