assert

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepResult

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

DeepResult compares test result with expected result using deepEqual

func Err

func Err(t *testing.T, err error, errSubstr string)

Err if you expect an error

func NoErr

func NoErr(t *testing.T, err error)

NoErr if you don't expect an error

func Result

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

Result compares test result with expected result using normal != assesment

func WantErr

func WantErr(t *testing.T, want bool, err error, errSubstr string)

WantErr if switching between Err and NoErr with a bool is needed. Intended for use in table-based testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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