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

Method test_leaf_node_full

python/tests/test_bplus_tree.py:220–229  ·  view source on GitHub ↗

Test when leaf node is full

(self)

Source from the content-addressed store, hash-verified

218 assert leaf.get(2) == "TWO"
219
220 def test_leaf_node_full(self):
221 """Test when leaf node is full"""
222 leaf = LeafNode(capacity=4)
223
224 # Fill the node
225 for i in range(4):
226 leaf.insert(i, str(i))
227
228 assert leaf.is_full()
229 assert len(leaf) == 4
230
231 def test_leaf_find_position(self):
232 """Test finding position for keys"""

Callers

nothing calls this directly

Calls 3

insertMethod · 0.95
is_fullMethod · 0.95
LeafNodeClass · 0.90

Tested by

no test coverage detected