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

Function avg_empty

nodedb-query/src/msgpack_scan/aggregate.rs:468–475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

466
467 #[test]
468 fn avg_empty() {
469 let d1 = encode(&json!({"other": 1}));
470 let docs: Vec<&[u8]> = vec![&d1];
471 assert_eq!(
472 compute_aggregate_binary("avg", "v", None, &docs),
473 Value::Null
474 );
475 }
476
477 #[test]
478 fn min_max() {

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected