MCPcopy Create free account
hub / github.com/imroc/req / AssertIsNil

Function AssertIsNil

internal/tests/assert.go:11–15  ·  view source on GitHub ↗
(t *testing.T, v any)

Source from the content-addressed store, hash-verified

9)
10
11func AssertIsNil(t *testing.T, v any) {
12 if !isNil(v) {
13 t.Errorf("[%v] was expected to be nil", v)
14 }
15}
16
17func AssertAllNotNil(t *testing.T, vv ...any) {
18 for _, v := range vv {

Callers 4

TestRetryFalseFunction · 0.92
TestRedirectFunction · 0.92
assertTraceInfoFunction · 0.92

Calls 2

isNilFunction · 0.85
ErrorfMethod · 0.65

Tested by 4

TestRetryFalseFunction · 0.74
TestRedirectFunction · 0.74
assertTraceInfoFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…