assert

package
v0.0.0-...-fe2311f Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArraysEqual

func ArraysEqual[T comparable](t *testing.T, actual, expected []T)

ArraysEqual asserts that two arrays of the same comparable type are of the same length, contenst, and order.

func Contains

func Contains[T comparable](t *testing.T, arr []T, val T)

Contains asserts that a given array contains an expected value.

func DoesNotContain

func DoesNotContain[T comparable](t *testing.T, arr []T, val T)

DoesNotContain asserts that a given array does not contain a certain value.

func Equal

func Equal[T comparable](t *testing.T, actual, expected T)

Equal asserts that two comparable values are equal via the `!=` operator.

func IsNil

func IsNil(t *testing.T, val interface{})

IsNil asserts that a given value is nil.

func NotEqual

func NotEqual[T comparable](t *testing.T, actual, expected T)

NotEqual asserts that two comparable values are not equal via the `!=` operator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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