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

Function encode

nodedb-query/src/msgpack_scan/aggregate.rs:428–430  ·  view source on GitHub ↗
(v: &serde_json::Value)

Source from the content-addressed store, hash-verified

426 use serde_json::json;
427
428 fn encode(v: &serde_json::Value) -> Vec<u8> {
429 nodedb_types::json_msgpack::json_to_msgpack(v).expect("encode")
430 }
431
432 #[test]
433 fn count() {

Callers 15

countFunction · 0.70
sumFunction · 0.70
avgFunction · 0.70
avg_emptyFunction · 0.70
min_maxFunction · 0.70
count_distinctFunction · 0.70
string_aggFunction · 0.70
array_aggFunction · 0.70
stddev_popFunction · 0.70
percentile_cont_medianFunction · 0.70
missing_field_skippedFunction · 0.70

Calls 2

json_to_msgpackFunction · 0.50
expectMethod · 0.45

Tested by 15

countFunction · 0.56
sumFunction · 0.56
avgFunction · 0.56
avg_emptyFunction · 0.56
min_maxFunction · 0.56
count_distinctFunction · 0.56
string_aggFunction · 0.56
array_aggFunction · 0.56
stddev_popFunction · 0.56
percentile_cont_medianFunction · 0.56
missing_field_skippedFunction · 0.56