Documentation
¶
Index ¶
- Variables
- func Assert(t *testing.T, ok bool, message ...string)
- func AssertFalse(t *testing.T, received bool, message ...string)
- func AssertTrue(t *testing.T, received bool, message ...string)
- func Enums[T comparable](t *testing.T, enums []T, element T, message ...string)
- func Equal[T comparable](t *testing.T, expected, received T, message ...string)
- func Includes[T comparable](t *testing.T, list []T, item T, message ...string)
- func NotEqual[T comparable](t *testing.T, expected, received T, message ...string)
- func Range[T Number](t *testing.T, min T, max T, value T, message ...string)
- func Type(t *testing.T, typ string, value any, message ...string)
- type Number
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "1.0.2"
Functions ¶
func AssertFalse ¶ added in v1.0.2
AssertFalse asserts that the specified value is false.
func AssertTrue ¶ added in v1.0.2
AssertTrue asserts that the specified value is true.
func Enums ¶
func Enums[T comparable](t *testing.T, enums []T, element T, message ...string)
Enums logs error if element is not one of enums.
func Equal ¶
func Equal[T comparable](t *testing.T, expected, received T, message ...string)
Equal logs error if expected and actual are not deeply equal.
func Includes ¶
func Includes[T comparable](t *testing.T, list []T, item T, message ...string)
Includes logs error if expected does not includes received.
func NotEqual ¶
func NotEqual[T comparable](t *testing.T, expected, received T, message ...string)
NotEqual logs error if expected and actual are equal.
Types ¶
Click to show internal directories.
Click to hide internal directories.