is

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package is provides test assertion utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(t *testing.T, expected, actual any) bool

Equal asserts that the given values are equal.

func EqualError

func EqualError(t *testing.T, expected, actual error) bool

EqualError asserts that the given error values are equal.

func EqualJSON

func EqualJSON(t *testing.T, expected, actual string) bool

EqualJSON asserts that the given strings are equal after unmarshaling as json.

func Error

func Error(t *testing.T, err error) bool

Error asserts that the given err is not nil.

func MustEqual

func MustEqual(t *testing.T, expected, actual any)

MustEqual requires that the given values are equal.

func MustEqualError

func MustEqualError(t *testing.T, expected, actual error)

MustEqualError requires that the given error values are equal.

func MustError

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

MustError requires that the given err is not nil.

func MustNoError

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

MustNoError requires that the given err is nil.

func Nil

func Nil(t *testing.T, actual any) bool

Nil asserts that the given value is nil.

func NoError

func NoError(t *testing.T, err error) bool

NoError asserts that the given err is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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