MCPcopy Create free account
hub / github.com/stretchr/objx / Empty

Method Empty

std_assert_test.go:182–188  ·  view source on GitHub ↗
(t *testing.T, object interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

180}
181
182func (a nonfatal) Empty(t *testing.T, object interface{}, msgAndArgs ...interface{}) bool {
183 t.Helper()
184 if !isEmpty(object) {
185 return a.fail(t, "expected empty, got: %#v", object)
186 }
187 return true
188}
189
190func (a fatal) Empty(t *testing.T, object interface{}, msgAndArgs ...interface{}) {
191 t.Helper()

Callers

nothing calls this directly

Calls 2

failMethod · 0.95
isEmptyFunction · 0.85

Tested by

no test coverage detected