assert

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package assert provides assertion helpers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

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

Equal will test that want == got, and call t.Fatal if it does not. Notably, for errors, they are equal if they are both nil, or are both non-nil. No value information is checked for errors.

Types

type Assert

type Assert struct {
	// contains filtered or unexported fields
}

func (Assert) Equal

func (a Assert) Equal(want, got interface{})

Equal will call t.Fatal if want and got are not equal.

Jump to

Keyboard shortcuts

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