asrt

package
v0.0.0-...-60e5113 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2015 License: MIT, MIT Imports: 6 Imported by: 0

README

asrt

A very lightweight assertions package for Go.

To Do

  • Better failure message for Equal and DeepEqual when got or want are large. It's very hard to see the difference between, say, two 200-element slices. A nice structural diff implementation would go a very long way.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t testing.TB, pred bool)

Assert calls t.Fatal unless pred is true.

func DeepEqual

func DeepEqual(t testing.TB, got, want interface{})

DeepEqual calls t.Fatal unless got equals want under reflect.DeepEqual.

func Equal

func Equal(t testing.TB, got, want interface{})

Equal calls t.Fatal unless got == want.

Types

This section is empty.

Jump to

Keyboard shortcuts

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