MCPcopy Index your code
hub / github.com/expr-lang/expr / TestNotNil

Function TestNotNil

internal/testify/require/requirements_test.go:97–106  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func TestNotNil(t *testing.T) {
98
99 NotNil(t, new(AssertionTesterConformingObject))
100
101 mockT := new(MockT)
102 NotNil(mockT, nil)
103 if !mockT.Failed {
104 t.Error("Check should fail")
105 }
106}
107
108func TestNil(t *testing.T) {
109

Callers

nothing calls this directly

Calls 2

NotNilFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…