assert

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: MIT Imports: 5 Imported by: 0

README

tama-go/assert

GoDoc CircleCI Go Report Card

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommonOptions = []cmp.Option{
	cmpopts.IgnoreInterfaces(struct{ context.Context }{}),
}

CommonOptions is common options which applied for all types.

Functions

func Add

func Add(v interface{}, opts ...cmp.Option)

Add adds options for the type of value to option repository.

func AddCommon added in v0.1.2

func AddCommon(opts ...cmp.Option)

AddCommon adds common cmp.Options for all types.

func Equal

func Equal(tb testing.TB, expected, actual interface{})

Equal checks equality between "expected" and "actual". Test will be aborted soon if it wasn't match.

func FatalEqual

func FatalEqual(tb testing.TB, expected, actual interface{})

FatalEqual checks equality between expected and actual.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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