assert

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 3 Imported by: 0

README

assert

Godoc Report Tests Coverage Sponsor

A minimal & stateless assert package for writing tests.

API

Equal
assert.Equal(t, "Hello", "Hello")
Contains
assert.Contains(t, "Hello", "ello")
Nil
assert.Nil(t, nil)

Style

Please take a look at the style guidelines if you'd like to make a pull request.

Sponsors

Cedric Fung Scott Rayapoullé Eduard Urbach
Cedric Fung Scott Rayapoullé Eduard Urbach

Want to see your own name here?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(t *testing.T, a interface{}, b interface{})

Contains asserts that a contains b.

func Equal

func Equal(t *testing.T, a interface{}, b interface{})

Equal asserts that the two parameters are equal.

func Nil

func Nil(t *testing.T, a interface{})

Nil asserts that the given parameter equals nil.

func NotContains

func NotContains(t *testing.T, a interface{}, b interface{})

NotContains asserts that a doesn't contain b.

func NotEqual

func NotEqual(t *testing.T, a interface{}, b interface{})

NotEqual asserts that the two parameters are equal.

func NotNil

func NotNil(t *testing.T, a interface{})

NotNil asserts that the given parameter does not equal nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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