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

Function booleanFunc

func.go:273–278  ·  view source on GitHub ↗

booleanFunc is a XPath functions boolean([node-set]).

(arg1 query)

Source from the content-addressed store, hash-verified

271
272// booleanFunc is a XPath functions boolean([node-set]).
273func booleanFunc(arg1 query) func(query, iterator) interface{} {
274 return func(_ query, t iterator) interface{} {
275 v := functionArgs(arg1).Evaluate(t)
276 return asBool(t, v)
277 }
278}
279
280// numberFunc is a XPath functions number([node-set]).
281func numberFunc(arg1 query) func(query, iterator) interface{} {

Callers 1

processFunctionMethod · 0.85

Calls 3

functionArgsFunction · 0.85
asBoolFunction · 0.85
EvaluateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…