assertions

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertActual

func AssertActual(a actualAssertion, actual interface{}, msgAndArgs ...interface{}) error

AssertActual wraps testify assertions for single-value checks

func AssertBool

func AssertBool(a boolAssertion, value bool, msgAndArgs ...interface{}) error

AssertBool wraps boolean testify assertions

func AssertExpectedAndActual

func AssertExpectedAndActual(a expectedAndActualAssertion, expected, actual interface{}, msgAndArgs ...interface{}) error

AssertExpectedAndActual wraps testify assertions to return errors instead of failing tests

func AssertType

func AssertType(a expectedAndActualAssertion, expected, actual interface{}, msgAndArgs ...interface{}) error

AssertType checks if two values have the same type

Types

This section is empty.

Jump to

Keyboard shortcuts

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