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

Function TestCompileWithNS

xpath_test.go:184–195  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

182}
183
184func TestCompileWithNS(t *testing.T) {
185 _, err := CompileWithNS("/foo", nil)
186 assertNil(t, err)
187 _, err = CompileWithNS("/foo", map[string]string{})
188 assertNil(t, err)
189 _, err = CompileWithNS("/foo", map[string]string{"a": "b"})
190 assertNil(t, err)
191 _, err = CompileWithNS("/a:foo", map[string]string{"a": "b"})
192 assertNil(t, err)
193 _, err = CompileWithNS("/u:foo", map[string]string{"a": "b"})
194 assertErr(t, err)
195}
196
197func TestNamespacePrefixQuery(t *testing.T) {
198 /*

Callers

nothing calls this directly

Calls 3

CompileWithNSFunction · 0.85
assertNilFunction · 0.85
assertErrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…