Documentation
¶
Overview ¶
Package assert provides utility functions for testing which help assert certain conditions are met.
Index ¶
- func AllEnumValuesAreValid(t *testing.T, filePath, enumName string, validate func(string) error)
- func Equal(t *testing.T, expected, actual any) bool
- func Error(t *testing.T, err error) bool
- func False(t *testing.T, actual bool) bool
- func Len(t *testing.T, v any, length int) bool
- func NoError(t *testing.T, err error) bool
- func NotEmpty(t *testing.T, v any) bool
- func Require(t *testing.T, isPassing bool)
- func True(t *testing.T, actual bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllEnumValuesAreValid ¶ added in v0.3.0
AllEnumValuesAreValid checks if all enum values are valid as defined by a supplied validation function. The enum (distinguished by enumName) is read from a Go source file at the specified filePath.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.