MCPcopy Create free account
hub / github.com/expr-lang/expr / TestNilWrapper

Function TestNilWrapper

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

Source from the content-addressed store, hash-verified

85}
86
87func TestNilWrapper(t *testing.T) {
88 require := New(t)
89 require.Nil(nil)
90
91 mockT := new(MockT)
92 mockRequire := New(mockT)
93 mockRequire.Nil(new(AssertionTesterConformingObject))
94 if !mockT.Failed {
95 t.Error("Check should fail")
96 }
97}
98
99func TestTrueWrapper(t *testing.T) {
100 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NilMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…