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

Method test

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

Source from the content-addressed store, hash-verified

39 }
40
41 @Override
42 public boolean test(final QueryContext qc, final InputInfo ii, final long pos)
43 throws QueryException {
44 for(final Expr expr : exprs) {
45 final Iter iter = expr.atomIter(qc, info);
46 for(Item item; (item = qc.next(iter)) != null;) {
47 if(item.string(info).length > 0) return true;
48 }
49 }
50 return false;
51 }
52
53 @Override
54 public Expr optimize(final CompileContext cc) throws QueryException {

Callers

nothing calls this directly

Calls 3

stringMethod · 0.95
nextMethod · 0.65
atomIterMethod · 0.45

Tested by

no test coverage detected