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

Function get_or_create_installs_empty_partition

nodedb-graph/src/sharded.rs:188–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186
187 #[test]
188 fn get_or_create_installs_empty_partition() {
189 let mut sharded = ShardedCsrIndex::new();
190 let part = sharded.get_or_create(tid(7));
191 assert_eq!(part.node_count(), 0);
192 assert!(sharded.contains_partition(tid(7)));
193 assert_eq!(sharded.partition_count(), 1);
194 }
195
196 #[test]
197 fn partitions_are_isolated_by_tenant() {

Callers

nothing calls this directly

Calls 2

tidFunction · 0.85
get_or_createMethod · 0.45

Tested by

no test coverage detected