MCPcopy Create free account
hub / github.com/BaseXdb/basex / test

Method test

basex-core/src/main/java/org/basex/query/expr/CmpN.java:55–63  ·  view source on GitHub ↗
(final QueryContext qc, final InputInfo ii, final long pos)

Source from the content-addressed store, hash-verified

53 }
54
55 @Override
56 public boolean test(final QueryContext qc, final InputInfo ii, final long pos)
57 throws QueryException {
58 final GNode n1 = toGNodeOrNull(exprs[0], qc);
59 if(n1 == null) return false;
60 final GNode n2 = toGNodeOrNull(exprs[1], qc);
61 if(n2 == null) return false;
62 return op.eval(n1, n2);
63 }
64
65 @Override
66 public Expr invert() {

Callers

nothing calls this directly

Calls 2

toGNodeOrNullMethod · 0.80
evalMethod · 0.65

Tested by

no test coverage detected