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

Function empty_reducer_finalizes_to_none

nodedb-array/src/query/aggregate.rs:291–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289
290 #[test]
291 fn empty_reducer_finalizes_to_none() {
292 let t = tile(&[(0, None)]);
293 let r = aggregate_attr(&t, 0, Reducer::Sum);
294 assert_eq!(r.finalize(), None);
295 }
296
297 #[test]
298 fn group_by_buckets_by_dim_value() {

Callers

nothing calls this directly

Calls 2

aggregate_attrFunction · 0.85
tileFunction · 0.70

Tested by

no test coverage detected