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

Function TestNil

internal/testify/assert/assertions_test.go:762–776  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

760}
761
762func TestNil(t *testing.T) {
763
764 mockT := new(testing.T)
765
766 if !Nil(mockT, nil) {
767 t.Error("Nil should return true: object is nil")
768 }
769 if !Nil(mockT, (*struct{})(nil)) {
770 t.Error("Nil should return true: object is (*struct{})(nil)")
771 }
772 if Nil(mockT, new(AssertionTesterConformingObject)) {
773 t.Error("Nil should return false: object is not nil")
774 }
775
776}
777
778func TestTrue(t *testing.T) {
779

Callers

nothing calls this directly

Calls 2

NilFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…