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

Method NotNil

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

Source from the content-addressed store, hash-verified

96}
97
98func (a fatal) NotNil(t *testing.T, object interface{}, msgAndArgs ...interface{}) {
99 t.Helper()
100 if isNil(object) {
101 a.fail(t, "expected not nil")
102 }
103}
104
105func (a nonfatal) True(t *testing.T, value bool, msgAndArgs ...interface{}) bool {
106 t.Helper()

Callers 12

TestMapCreationFunction · 0.45
TestMapFromJSONFunction · 0.45
TestConversionJSONIntFunction · 0.45
TestJSONSliceIntFunction · 0.45
TestJSONSliceMixedFunction · 0.45
TestMapFromURLQueryFunction · 0.45
TestMapMustFromURLQueryFunction · 0.45
TestSimpleExampleFunction · 0.45
TestCopyFunction · 0.45
TestConversionURLQueryFunction · 0.45

Calls 2

failMethod · 0.95
isNilFunction · 0.85

Tested by

no test coverage detected