Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ tid
Function
tid
nodedb-graph/src/sharded.rs:175–177 ·
view source on GitHub ↗
(n: u64)
Source
from the content-addressed store, hash-verified
173
use super::*;
174
175
fn tid(n: u64) -> TenantId {
176
TenantId::new(n)
177
}
178
179
#[test]
180
fn empty_sharded_has_no_partitions() {
Callers
7
get_or_create_installs_empty_partition
Function · 0.85
partitions_are_isolated_by_tenant
Function · 0.85
node_names_are_unprefixed
Function · 0.85
drop_partition_removes_tenant_state
Function · 0.85
drop_partition_does_not_touch_other_tenants
Function · 0.85
install_partition_replaces_existing
Function · 0.85
compact_all_applies_to_every_partition
Function · 0.85
Calls
no outgoing calls
Tested by
7
get_or_create_installs_empty_partition
Function · 0.68
partitions_are_isolated_by_tenant
Function · 0.68
node_names_are_unprefixed
Function · 0.68
drop_partition_removes_tenant_state
Function · 0.68
drop_partition_does_not_touch_other_tenants
Function · 0.68
install_partition_replaces_existing
Function · 0.68
compact_all_applies_to_every_partition
Function · 0.68