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

Function null_value_indexed

nodedb-vector/src/collection/payload_index.rs:666–672  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

664
665 #[test]
666 fn null_value_indexed() {
667 let mut idx = PayloadIndex::new("f", PayloadIndexKind::Equality);
668 idx.insert(0, &Value::Null);
669 idx.insert(1, &Value::Null);
670 let bm = idx.equality(&Value::Null).unwrap();
671 assert_eq!(bm.len(), 2);
672 }
673
674 #[test]
675 fn snapshot_roundtrip() {

Callers

nothing calls this directly

Calls 2

equalityMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected