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

Function test_config

nodedb/tests/bitemporal_retention.rs:19–26  ·  view source on GitHub ↗
(retention_ms: u64)

Source from the content-addressed store, hash-verified

17use nodedb::engine::timeseries::partition_registry::PartitionRegistry;
18
19fn test_config(retention_ms: u64) -> TieredPartitionConfig {
20 let mut cfg = TieredPartitionConfig::origin_defaults();
21 cfg.partition_by = PartitionInterval::Duration(86_400_000); // 1d
22 cfg.merge_after_ms = 7 * 86_400_000;
23 cfg.merge_count = 3;
24 cfg.retention_period_ms = retention_ms;
25 cfg
26}
27
28fn sealed_partition_meta(min_ts: i64, max_ts: i64, max_system_ts: i64) -> PartitionMeta {
29 PartitionMeta {

Calls 1

DurationClass · 0.85

Tested by

no test coverage detected