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

Function assertNoErr

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

Source from the content-addressed store, hash-verified

12}
13
14func assertNoErr(tb testing.TB, err error) {
15 if err != nil {
16 tb.Fatalf("expected no err, but got: %s", err.Error())
17 }
18}
19
20func assertErr(tb testing.TB, err error) {
21 if err == nil {

Callers 3

test_xpath_evalFunction · 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…