MCPcopy Create free account
hub / github.com/antchfx/xpath / assertNil

Function assertNil

assert_test.go:38–42  ·  view source on GitHub ↗
(tb testing.TB, v interface{})

Source from the content-addressed store, hash-verified

36}
37
38func assertNil(tb testing.TB, v interface{}) {
39 if v != nil && !reflect.ValueOf(v).IsNil() {
40 tb.Fatalf("expected nil, but got: %+v", v)
41 }
42}
43
44func assertPanic(t *testing.T, f func()) {
45 defer func() {

Callers 3

TestCompileFunction · 0.85
TestCompileWithNSFunction · 0.85
TestGetRegexpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…