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

Function missing_field_skipped

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

Source from the content-addressed store, hash-verified

555
556 #[test]
557 fn missing_field_skipped() {
558 let d1 = encode(&json!({"v": 10}));
559 let d2 = encode(&json!({"other": 99}));
560 let d3 = encode(&json!({"v": 30}));
561 let docs: Vec<&[u8]> = vec![&d1, &d2, &d3];
562 assert_eq!(
563 compute_aggregate_binary("sum", "v", None, &docs),
564 Value::Float(40.0)
565 );
566 }
567
568 #[test]
569 fn null_field_skipped_in_count_distinct() {

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.70

Tested by

no test coverage detected