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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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