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

Method test

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

Source from the content-addressed store, hash-verified

96 }
97
98 @Override
99 public boolean test(final QueryContext qc, final InputInfo ii, final long pos)
100 throws QueryException {
101 final Item item1 = exprs[0].atomItem(qc, info);
102 if(item1 == Empty.VALUE) return false;
103 final Item item2 = exprs[1].atomItem(qc, info);
104 if(item2 == Empty.VALUE) return false;
105 return test(item1, item2);
106 }
107
108 /**
109 * Performs the test.

Callers 1

itemMethod · 0.95

Calls 5

compareErrorMethod · 0.80
evalMethod · 0.65
atomItemMethod · 0.45
comparableMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected