MCPcopy
hub / github.com/connectrpc/connect-go / Nil

Function Nil

internal/assert/assert.go:53–60  ·  view source on GitHub ↗

Nil asserts that the value is nil.

(tb testing.TB, got any, options ...Option)

Source from the content-addressed store, hash-verified

51
52// Nil asserts that the value is nil.
53func Nil(tb testing.TB, got any, options ...Option) bool {
54 tb.Helper()
55 if isNil(got) {
56 return true
57 }
58 report(tb, got, nil, "assert.Nil", false /* showWant */, options...)
59 return false
60}
61
62// NotNil asserts that the value isn't nil.
63func NotNil(tb testing.TB, got any, options ...Option) bool {

Calls 2

isNilFunction · 0.85
reportFunction · 0.85