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

Function insert_sets_entry_point

nodedb-vector/src/codec_index/build.rs:269–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267
268 #[test]
269 fn insert_sets_entry_point() {
270 let codec = make_sq8(4, 10);
271 let mut idx: HnswCodecIndex<Sq8Codec> = HnswCodecIndex::new(4, 8, 50, codec, 1);
272 idx.insert(0, &[0.1, 0.2, 0.3, 0.4]);
273 assert!(idx.entry_point.is_some());
274 assert_eq!(idx.len(), 1);
275 }
276
277 #[test]
278 fn insert_multiple_grows_nodes() {

Callers

nothing calls this directly

Calls 2

make_sq8Function · 0.70
insertMethod · 0.45

Tested by

no test coverage detected