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

Method Empty

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

Source from the content-addressed store, hash-verified

188}
189
190func (a fatal) Empty(t *testing.T, object interface{}, msgAndArgs ...interface{}) {
191 t.Helper()
192 if !isEmpty(object) {
193 a.fail(t, "expected empty, got: %#v", object)
194 }
195}
196
197func isEmpty(object interface{}) bool {
198 if object == nil {

Callers 1

TestMergeFunction · 0.45

Calls 2

failMethod · 0.95
isEmptyFunction · 0.85

Tested by

no test coverage detected