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

Method fileToURL

basex-core/src/test/java/org/basex/io/IOTest.java:29–33  ·  view source on GitHub ↗

File to URL conversions.

()

Source from the content-addressed store, hash-verified

27
28 /** File to URL conversions. */
29 @Test public void fileToURL() {
30 final String url = new IOFile("X Y").url();
31 assertTrue(url.startsWith("file:/"));
32 assertTrue(url.endsWith("X%20Y"));
33 }
34
35 /** Path normalization must preserve non-BMP characters (surrogate pairs). */
36 @Test public void surrogatePairPath() {

Callers

nothing calls this directly

Calls 3

urlMethod · 0.45
startsWithMethod · 0.45
endsWithMethod · 0.45

Tested by

no test coverage detected