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

Method edit

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

Source from the content-addressed store, hash-verified

326 }
327
328 private static void edit(Rocks rocks, Table<Integer, Bean1> table) throws Exception {
329 rocks.newProcedure(() -> {
330 update(table, 10);
331 verifyChanges("{(tRocksRaft#0,1):State=2 PutValue=null\n" +
332 "Log=[{1:Value=11,3: Putted:{13:13} Removed:[],4:{1:Value=12},5: Putted:{14:Bean1(14 I=15 L=0 Map1={} Bean2=Bean2(I=0) Map2={})} Removed:[] Changed:[{1:Value=15}]}]\n" +
333 "AllLog=[{1:Value=11,3: Putted:{13:13} Removed:[],4:{1:Value=12},5: Putted:{14:Bean1(14 I=15 L=0 Map1={} Bean2=Bean2(I=0) Map2={})} Removed:[] Changed:[{1:Value=15}]}]}");
334 return 0L;
335 }).call();
336 }
337
338 private static void editAndPut(Rocks rocks, Table<Integer, Bean1> table) throws Exception {
339 rocks.newProcedure(() -> {

Callers 1

runLeaderMethod · 0.95

Calls 4

updateMethod · 0.95
verifyChangesMethod · 0.95
callMethod · 0.65
newProcedureMethod · 0.45

Tested by

no test coverage detected