Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Any = Anything{} //nolint:gochecknoglobals // This is a special value, not intended to be modified.
Any is a special value that can be used to match any argument.
Functions ¶
func ErrorContains ¶
func ErrorContains(contains string) assert.ErrorAssertionFunc
ErrorContains returns an assertion to check if the error contains the given string.
func ErrorIs ¶
func ErrorIs(target error) assert.ErrorAssertionFunc
ErrorIs returns an assertion to check if the error is the target error.
func HasIntersection ¶
HasIntersection checks if two slices have any common elements.
Types ¶
type Anything ¶
type Anything struct{}
Anything is a special type that can be used to match any argument.
type FileSize ¶
FileSize represents a file size with units.
func FileSizeFromSize ¶
FileSizeFromSize returns a FileSize instance from the given size.
Click to show internal directories.
Click to hide internal directories.