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

Function bloom_insert_and_query

nodedb-columnar/src/predicate.rs:607–613  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

605
606 #[test]
607 fn bloom_insert_and_query() {
608 let values = ["hello", "world", "foo"];
609 let bloom = build_bloom(&values);
610 assert!(bloom_may_contain(&bloom, "hello"));
611 assert!(bloom_may_contain(&bloom, "world"));
612 assert!(bloom_may_contain(&bloom, "foo"));
613 }
614
615 #[test]
616 fn bloom_absent_value_rejected() {

Callers

nothing calls this directly

Calls 1

build_bloomFunction · 0.85

Tested by

no test coverage detected