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

Method testFdCache

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

Source from the content-addressed store, hash-verified

486 }
487
488 @Test
489 public void testFdCache() {
490 for (int index = 0; index < 128; index++) {
491 int NON_CACHED = (2 << 30);
492 long fd = Numbers.encodeLowHighInts(index | NON_CACHED, 3342);
493 int fdKind = (Numbers.decodeLowInt(fd) >>> 30) & 3;
494 Assert.assertTrue(fdKind > 1);
495
496 int RO_MASK = 0;
497 fd = Numbers.encodeLowHighInts(index | RO_MASK, 78234);
498 fdKind = (Numbers.decodeLowInt(fd) >>> 30) & 3;
499 Assert.assertEquals(0, fdKind);
500 }
501 }
502
503 @Test
504 public void testHardLinkAsciiName() throws Exception {

Callers

nothing calls this directly

Calls 4

encodeLowHighIntsMethod · 0.95
decodeLowIntMethod · 0.95
assertTrueMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected