MCPcopy
hub / github.com/stretchr/testify / Emptyf

Method Emptyf

assert/assertion_forward.go:128–133  ·  view source on GitHub ↗

Emptyf asserts that the given value is "empty". [Zero values] are "empty". Arrays are "empty" if every element is the zero value of the type (stricter than "empty"). Slices, maps and channels with zero length are "empty". Pointer values are "empty" if the pointer is nil or if the pointed value i

(object interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

126//
127// [Zero values]: https://go.dev/ref/spec#The_zero_value
128func (a *Assertions) Emptyf(object interface{}, msg string, args ...interface{}) bool {
129 if h, ok := a.t.(tHelper); ok {
130 h.Helper()
131 }
132 return Emptyf(a.t, object, msg, args...)
133}
134
135// Equal asserts that two objects are equal.
136//

Callers

nothing calls this directly

Calls 2

EmptyfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected