Documentation
¶
Overview ¶
Package affirm is an internal package that provides simple affirmation functions designed to improve readability and minimize boilerplate code in test cases by offering concise, semantically meaningful functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepEqual ¶
DeepEqual affirms "want" and "have" are equal using reflect.DeepEqual. Returns true if it is, otherwise marks the test as failed, writes error message to the test log and returns false.
func Equal ¶
func Equal[T comparable](t core.T, want, have T) bool
Equal affirms two comparable types are equal. Returns true if it is, otherwise marks the test as failed, writes error message to the test log and returns false.
func Nil ¶
Nil affirms "have" is nil. Returns true if it is, otherwise marks the test as failed, writes error message to the test log and returns false.
Types ¶
This section is empty.