MCPcopy
hub / github.com/expr-lang/expr / TestNilWrapper

Function TestNilWrapper

internal/testify/assert/forward_assertions_test.go:73–83  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func TestNilWrapper(t *testing.T) {
74 assert := New(new(testing.T))
75
76 if !assert.Nil(nil) {
77 t.Error("Nil should return true: object is nil")
78 }
79 if assert.Nil(new(AssertionTesterConformingObject)) {
80 t.Error("Nil should return false: object is not nil")
81 }
82
83}
84
85func TestTrueWrapper(t *testing.T) {
86 assert := New(new(testing.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…