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

Method setup_method

python/tests/test_dictionary_api.py:28–33  ·  view source on GitHub ↗

Set up test fixtures before each test method.

(self)

Source from the content-addressed store, hash-verified

26 """Test all dictionary-like methods of BPlusTreeMap."""
27
28 def setup_method(self):
29 """Set up test fixtures before each test method."""
30 self.tree = BPlusTreeMap(capacity=4)
31 # Add some initial data
32 for i in range(10):
33 self.tree[i] = f"value_{i}"
34
35 def test_clear(self):
36 """Test the clear() method."""

Callers 1

Calls 1

BPlusTreeMapClass · 0.50

Tested by

no test coverage detected