Documentation
¶
Index ¶
- func AssertErrorContains(str string) assert.ErrorAssertionFunc
- func AssertErrorIs(target error) assert.ErrorAssertionFunc
- func AssertErrorIsNotFound() assert.ErrorAssertionFunc
- func AssertValueAll(fns ...assert.ValueAssertionFunc) assert.ValueAssertionFunc
- func AssertValueContains(contains interface{}) assert.ValueAssertionFunc
- func AssertValueJSONEq(expected any) assert.ValueAssertionFunc
- func MakeUID(name string) types.UID
- func Mkmtime(value string) metav1.Time
- func Mkmtimep(value string) *metav1.Time
- func Mktime(value string) time.Time
- func Mktimep(value string) *time.Time
- func WantError(t assert.TestingT, wantErr assert.ErrorAssertionFunc, err error, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertErrorContains ¶ added in v0.3.0
func AssertErrorContains(str string) assert.ErrorAssertionFunc
AssertErrorContains returns assert.ErrorAssertionFunc that asserts that the error message contains str.
func AssertErrorIs ¶ added in v0.3.0
func AssertErrorIs(target error) assert.ErrorAssertionFunc
AssertErrorIs returns assert.ErrorAssertionFunc that asserts that the error is target.
func AssertErrorIsNotFound ¶ added in v0.3.0
func AssertErrorIsNotFound() assert.ErrorAssertionFunc
AssertErrorIsNotFound returns assert.ErrorAssertionFunc that asserts that the error is a NotFoundError.
func AssertValueAll ¶ added in v0.3.0
func AssertValueAll(fns ...assert.ValueAssertionFunc) assert.ValueAssertionFunc
AssertValueAll composes multiple assert.ValueAssertionFunc together.
func AssertValueContains ¶ added in v0.3.0
func AssertValueContains(contains interface{}) assert.ValueAssertionFunc
AssertValueContains returns assert.ValueAssertionFunc that asserts that the value contains the given contents.
func AssertValueJSONEq ¶ added in v0.3.0
func AssertValueJSONEq(expected any) assert.ValueAssertionFunc
AssertValueJSONEq returns assert.ValueAssertionFunc that asserts that two JSON strings are equivalent.
func MakeUID ¶
MakeUID returns a deterministically generated UID given an input string. nolint:gosec
Types ¶
This section is empty.