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

Function create_and_check

nodedb/src/query/bitmap.rs:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48 #[test]
49 fn create_and_check() {
50 let bm = from_ids(vec![1, 5, 10, 100]);
51 assert!(bm.contains(1));
52 assert!(bm.contains(10));
53 assert!(!bm.contains(2));
54 assert_eq!(bm.len(), 4);
55 }
56
57 #[test]
58 fn intersect_filters() {

Callers

nothing calls this directly

Calls 1

from_idsFunction · 0.85

Tested by

no test coverage detected