MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / test_new_leaf

Function test_new_leaf

tests/trees.rs:102–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101 #[test]
102 fn test_new_leaf() {
103 let node: Node<i32, String> = Node::new_leaf(0);
104 assert!(node.keys.is_empty());
105 assert!(node.values.is_empty());
106 assert!(node.children.is_empty());
107 assert_eq!(node.node_type, NodeType::Leaf);
108 }
109
110 #[test]
111 fn test_search_in_leaf() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected