Documentation ¶
Overview ¶
Package usure provides a few assertions.
Package usure provides a few assertions.
Index ¶
- func Assert(comparison func() (success bool), msg string) bool
- func Equal[T any](a, b T) bool
- func Expect[T comparable](value T) *expectedValue[T]
- func ExpectEqual[T any](msg string, a, b T) bool
- func IsInstance[T any](a T) bool
- func Nil(a any) bool
- func NotEqual[T any](a, b T) bool
- func NotNil(a any) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Expect ¶
func Expect[T comparable](value T) *expectedValue[T]
func ExpectEqual ¶
ExpectEqual checks if a and b are equal and prints a message if the condition is false.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.