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

Method verifyData

ZezeJava/ZezeJava/src/main/java/Zeze/Raft/RocksRaft/Test.java:306–316  ·  view source on GitHub ↗
(Rocks rocks, Table<Integer, Bean1> table, String expected)

Source from the content-addressed store, hash-verified

304 }
305
306 private static void verifyData(Rocks rocks, Table<Integer, Bean1> table, String expected) throws Exception {
307 rocks.newProcedure(() -> {
308 var value = table.getOrAdd(1);
309 var current = value.toString();
310 if (expected == null)
311 System.out.println(current);
312 else
313 SimpleAssert.areEqual(expected, current);
314 return 0L;
315 }).call();
316 }
317
318 private static void putAndEdit(Rocks rocks, Table<Integer, Bean1> table) throws Exception {
319 rocks.newProcedure(() -> {

Callers 2

test_1Method · 0.95
runLeaderMethod · 0.95

Calls 5

areEqualMethod · 0.95
callMethod · 0.65
newProcedureMethod · 0.45
getOrAddMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected