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

Function encode

nodedb/src/data/executor/handlers/document/sort.rs:344–346  ·  view source on GitHub ↗
(v: &serde_json::Value)

Source from the content-addressed store, hash-verified

342 use super::*;
343
344 fn encode(v: &serde_json::Value) -> Vec<u8> {
345 nodedb_types::json_msgpack::json_to_msgpack(v).expect("encode")
346 }
347
348 #[test]
349 fn sort_by_int_field_asc() {

Calls 2

json_to_msgpackFunction · 0.50
expectMethod · 0.45

Tested by

no test coverage detected