(maxKeys int)
| 33 | } |
| 34 | |
| 35 | func NewBTree[T constraints.Ordered](maxKeys int) *BTree[T] { |
| 36 | if maxKeys <= 2 { |
| 37 | panic("Must be >= 3 keys") |
| 38 | } |
| 39 | return &BTree[T]{ |
| 40 | root: nil, |
| 41 | maxKeys: maxKeys, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | func (node *BTreeNode[T]) Verify(tree *BTree[T]) { |
| 46 | minKeys := minKeys(tree.maxKeys) |
nothing calls this directly
no outgoing calls
no test coverage detected