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

Function TestInvalidXPath

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

Source from the content-addressed store, hash-verified

174}
175
176func TestInvalidXPath(t *testing.T) {
177 var err error
178 _, err = Compile("()")
179 assertErr(t, err)
180 _, err = Compile("(1,2,3)")
181 assertErr(t, err)
182}
183
184func TestCompileWithNS(t *testing.T) {
185 _, err := CompileWithNS("/foo", nil)

Callers

nothing calls this directly

Calls 2

CompileFunction · 0.85
assertErrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…