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

Function TestNotNilWrapper

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

Source from the content-addressed store, hash-verified

59}
60
61func TestNotNilWrapper(t *testing.T) {
62 assert := New(new(testing.T))
63
64 if !assert.NotNil(new(AssertionTesterConformingObject)) {
65 t.Error("NotNil should return true: object is not nil")
66 }
67 if assert.NotNil(nil) {
68 t.Error("NotNil should return false: object is nil")
69 }
70
71}
72
73func TestNilWrapper(t *testing.T) {
74 assert := New(new(testing.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…