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

Method contains

basex-core/src/main/java/org/basex/core/Sandbox.java:178–182  ·  view source on GitHub ↗

Checks if a query yields the specified result. @param query query string @param result query result

(final String query, final String result)

Source from the content-addressed store, hash-verified

176 * @param result query result
177 */
178 protected static void contains(final String query, final String result) {
179 final String res = normNL(query(query));
180 if(!res.contains(result)) fail("Result does not contain substring: " + result +
181 "\n" + query + "\n[E] " + result + "\n[F] " + res);
182 }
183
184 /**
185 * Checks if a query yields the specified error code.

Callers

nothing calls this directly

Calls 3

normNLMethod · 0.95
queryMethod · 0.95
containsMethod · 0.65

Tested by

no test coverage detected