MCPcopy Create free account
hub / github.com/e2wugui/zeze / test

Method test

ZezeJava/ZezeJavaTest/src/Temp/TestMemoryTable.java:13–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12public class TestMemoryTable {
13 @Test
14 public void test() throws Exception {
15 App.Instance.Start();
16 App.Instance.demo_Module1.tMemorySize().getTableConf().setCacheCapacity(1);
17 App.Instance.demo_Module1.tMemorySize().getTableConf().setCacheFactor(1);
18
19 test(false, false);
20 test(false, true);
21 test(true, false);
22 test(true, true);
23 }
24
25 private static void callNewLruHot(TableX<?, ?> table) throws ReflectiveOperationException {
26 var tableCache = table.getCache();

Callers

nothing calls this directly

Calls 15

callMethod · 0.95
callNewLruHotMethod · 0.95
tMemorySizeMethod · 0.80
setCacheFactorMethod · 0.80
checkpointRunMethod · 0.80
getCacheMethod · 0.80
getMethod · 0.65
putMethod · 0.65
getCacheSizeMethod · 0.65
removeMethod · 0.65
StartMethod · 0.45
setCacheCapacityMethod · 0.45

Tested by

no test coverage detected