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

Function json_passthrough

nodedb/src/data/executor/response_codec/tests.rs:38–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37#[test]
38fn json_passthrough() {
39 let json_str = r#"[{"id":1}]"#;
40 let result = decode_payload_to_json(json_str.as_bytes());
41 assert_eq!(result, json_str);
42}
43
44#[test]
45fn msgpack_to_json_roundtrip() {

Callers

nothing calls this directly

Calls 2

decode_payload_to_jsonFunction · 0.70
as_bytesMethod · 0.45

Tested by

no test coverage detected