MCPcopy Create free account
hub / github.com/questdb/questdb / testMkdirs

Method testMkdirs

core/src/test/java/io/questdb/test/FilesTest.java:753–767  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

751 }
752
753 @Test
754 public void testMkdirs() throws Exception {
755 assertMemoryLeak(() -> {
756 File r = temporaryFolder.newFolder("to_delete");
757 try (Path path = new Path().of(r.getAbsolutePath())) {
758 path.concat("a").concat("b").concat("c").concat("f.text");
759 Assert.assertEquals(0, Files.mkdirs(path, 509));
760 }
761
762 try (Path path = new Path().of(r.getAbsolutePath())) {
763 path.concat("a").concat("b").concat("c");
764 Assert.assertTrue(Files.exists(path.$()));
765 }
766 });
767 }
768
769 @Test
770 public void testMmapInvalid() throws Exception {

Callers

nothing calls this directly

Calls 8

mkdirsMethod · 0.95
existsMethod · 0.95
concatMethod · 0.80
ofMethod · 0.65
$Method · 0.65
assertMemoryLeakMethod · 0.45
assertEqualsMethod · 0.45
assertTrueMethod · 0.45

Tested by

no test coverage detected