assert

package module
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: CC0-1.0 Imports: 3 Imported by: 3 modules, 3 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

package assert

import "github.com/zeebo/assert"

go.dev Go Report Card SourceGraph

Usage

See the api docs. There's not a lot of surface area, and that's the goal.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepEqual

func DeepEqual(t testing.TB, a, b interface{})

func Equal

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

func Error

func Error(t testing.TB, err error)

func False

func False(t testing.TB, v bool)

func Nil

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

func NoError

func NoError(t testing.TB, err error)

func NotEqual added in v1.3.1

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

func NotNil

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

func That

func That(t testing.TB, v bool)

func True

func True(t testing.TB, v bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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