MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / log_operation

Method log_operation

python/tests/fuzz_test.py:66–72  ·  view source on GitHub ↗

Log an operation for replay in case of errors

(
        self, op_type: str, key: Any = None, value: Any = None, extra: Any = None
    )

Source from the content-addressed store, hash-verified

64 }
65
66 def log_operation(
67 self, op_type: str, key: Any = None, value: Any = None, extra: Any = None
68 ):
69 """Log an operation for replay in case of errors"""
70 self.operations.append((op_type, key, value, extra))
71 self.operation_count += 1
72 self.stats[op_type] = self.stats.get(op_type, 0) + 1
73
74 def _prepopulate_tree(self, count: int) -> None:
75 """Pre-populate the tree with a specified number of elements to create complex structure"""

Callers 5

do_insert_or_updateMethod · 0.95
do_deleteMethod · 0.95
do_getMethod · 0.95
do_batch_deleteMethod · 0.95
do_compactMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected