testingassert

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

README

testingassert

Simple package providing Assert functions for Golang testing

go get github.com/ayes-web/testingassert

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t *testing.T, val bool, message string)

Assert makes sure value is true, exits with custom error message

func AssertEquals

func AssertEquals[T comparable](t *testing.T, first T, second T)

AssertEquals compares comparable types

func AssertEqualsDeep

func AssertEqualsDeep(t *testing.T, first any, second any)

AssertEqualsDeep is AssertEquals with reflect

func AssertEqualsDeepMsg

func AssertEqualsDeepMsg(t *testing.T, first any, second any, message string)

AssertEqualsDeepMsg is the error message variant of AssertEqualsDeep

func AssertEqualsMsg

func AssertEqualsMsg[T comparable](t *testing.T, first T, second T, message string)

AssertEqualsMsg is the error message variant of AssertEquals

func AssertNotEquals added in v0.1.3

func AssertNotEquals[T comparable](t *testing.T, first T, second T)

AssertNotEqual makes sure inputs arent equal

func AssertNotEqualsDeep added in v0.1.3

func AssertNotEqualsDeep(t *testing.T, first any, second any)

AssertNotEqualsDeep is AssertNotEqual with reflect

Types

This section is empty.

Jump to

Keyboard shortcuts

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