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

Function target_partition_count

nodedb/src/engine/timeseries/o3_buffer.rs:192–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190
191 #[test]
192 fn target_partition_count() {
193 let mut buf = O3Buffer::new(100);
194 buf.insert(make_row(100, 1, 0));
195 buf.insert(make_row(200, 1, 86_400_000));
196 buf.insert(make_row(300, 2, 0));
197 assert_eq!(buf.target_partition_count(), 2);
198 }
199
200 #[test]
201 fn empty_query() {

Callers

nothing calls this directly

Calls 2

make_rowFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected