assert

package module
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: MIT Imports: 11 Imported by: 0

README

WIP.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ShortStringLength = 50

Functions

This section is empty.

Types

type T

type T struct {
	*testing.T

	Name string
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, name string) *T

func (*T) CheckError

func (t *T) CheckError(actual error, expected interface{}) bool

func (*T) Contains added in v0.1.1

func (t *T) Contains(haystack, needle string) bool

func (*T) Equal

func (t *T) Equal(expected, actual interface{}, opts ...cmp.Option) bool

func (*T) Len

func (t *T) Len(actual interface{}, length int) bool

func (*T) Nil added in v0.1.1

func (t *T) Nil(actual interface{}) bool

func (*T) NotEqual

func (t *T) NotEqual(expected, actual interface{}, opts ...cmp.Option) bool

func (*T) NotNil

func (t *T) NotNil(actual interface{}) bool

func (*T) Panics added in v0.1.1

func (t *T) Panics(f func(), msgContains string) bool

Jump to

Keyboard shortcuts

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