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

Function already_msgpack_unchanged

nodedb/src/data/executor/doc_format.rs:184–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183 #[test]
184 fn already_msgpack_unchanged() {
185 let value = serde_json::json!({"a": 1});
186 let msgpack = nodedb_types::json_to_msgpack(&value).unwrap();
187 let result = json_to_msgpack(&msgpack);
188 assert_eq!(result, msgpack, "msgpack should pass through unchanged");
189 }
190
191 #[test]
192 fn noncanonical_msgpack_is_not_rewritten_on_read_path() {

Callers

nothing calls this directly

Calls 1

json_to_msgpackFunction · 0.70

Tested by

no test coverage detected