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

Method run

basex-core/src/test/java/org/basex/query/QueryTest.java:107–111  ·  view source on GitHub ↗

Runs the specified query. @param query query string @return query result @throws QueryException query exception

(final String query)

Source from the content-addressed store, hash-verified

105 * @throws QueryException query exception
106 */
107 protected static Value run(final String query) throws QueryException {
108 try(QueryProcessor qp = new QueryProcessor(query, context)) {
109 return qp.value();
110 }
111 }
112
113 /**
114 * Compares the actual and the expected value.

Callers 1

testMethod · 0.95

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected