MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / insert_single

Function insert_single

nodedb-vector/src/hnsw/build.rs:189–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187
188 #[test]
189 fn insert_single() {
190 let mut idx = make_index();
191 idx.insert(vec![1.0, 0.0, 0.0]).unwrap();
192 assert_eq!(idx.len(), 1);
193 assert_eq!(idx.entry_point(), Some(0));
194 }
195
196 #[test]
197 fn insert_many_maintains_invariants() {

Callers

nothing calls this directly

Calls 2

make_indexFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected