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

Method test_leaf_node_creation

python/tests/test_bplus_tree.py:189–194  ·  view source on GitHub ↗

Test creating a leaf node

(self)

Source from the content-addressed store, hash-verified

187 """Test LeafNode operations"""
188
189 def test_leaf_node_creation(self):
190 """Test creating a leaf node"""
191 leaf = LeafNode(capacity=4)
192 assert leaf.is_leaf()
193 assert not leaf.is_full()
194 assert len(leaf) == 0
195
196 def test_leaf_node_insert(self):
197 """Test inserting into a leaf node"""

Callers

nothing calls this directly

Calls 3

is_leafMethod · 0.95
is_fullMethod · 0.95
LeafNodeClass · 0.90

Tested by

no test coverage detected