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

Function TestNotNilWrapper

internal/testify/require/forward_requirements_test.go:75–85  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

73}
74
75func TestNotNilWrapper(t *testing.T) {
76 require := New(t)
77 require.NotNil(t, new(AssertionTesterConformingObject))
78
79 mockT := new(MockT)
80 mockRequire := New(mockT)
81 mockRequire.NotNil(nil)
82 if !mockT.Failed {
83 t.Error("Check should fail")
84 }
85}
86
87func TestNilWrapper(t *testing.T) {
88 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NotNilMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…