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

Function sum_skips_nulls

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

Source from the content-addressed store, hash-verified

256
257 #[test]
258 fn sum_skips_nulls() {
259 let t = tile(&[(0, Some(1.0)), (1, None), (2, Some(3.0))]);
260 let r = aggregate_attr(&t, 0, Reducer::Sum);
261 assert_eq!(r.finalize(), Some(4.0));
262 }
263
264 #[test]
265 fn count_includes_nonnull_only() {

Callers

nothing calls this directly

Calls 2

aggregate_attrFunction · 0.85
tileFunction · 0.70

Tested by

no test coverage detected