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

Method repoFile

basex-core/src/test/java/org/basex/query/ModuleTest.java:51–60  ·  view source on GitHub ↗

Tests a repository import. @throws Exception exception

()

Source from the content-addressed store, hash-verified

49 * @throws Exception exception
50 */
51 @Test public void repoFile() throws Exception {
52 // repository files
53 final IOFile repo = new IOFile(sandbox(), "repo");
54 repo.md();
55 write(new IOFile(repo, "a.xqm"), "module namespace a='a'; declare function a:a(){()};");
56
57 try(QueryContext qc = new QueryContext(context)) {
58 qc.parse("import module namespace a='a'; a:a()", null);
59 }
60 }
61
62 /**
63 * Tests circular dependencies.

Callers

nothing calls this directly

Calls 4

mdMethod · 0.95
sandboxMethod · 0.45
writeMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected