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

Function assertErr

assert_test.go:20–24  ·  view source on GitHub ↗
(tb testing.TB, err error)

Source from the content-addressed store, hash-verified

18}
19
20func assertErr(tb testing.TB, err error) {
21 if err == nil {
22 tb.Fatal("expected err, but got nil")
23 }
24}
25
26func assertTrue(tb testing.TB, v bool) {
27 if !v {

Callers 6

TestCompileFunction · 0.85
TestInvalidXPathFunction · 0.85
TestCompileWithNSFunction · 0.85
Test_func_matchesFunction · 0.85
TestLoadingCacheFunction · 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…