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

Function json_input_detected_correctly

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

Source from the content-addressed store, hash-verified

167
168 #[test]
169 fn json_input_detected_correctly() {
170 let json_bytes = b"{\"x\":1}";
171 let decoded = decode_document(json_bytes).unwrap();
172 assert_eq!(decoded["x"], 1);
173 }
174
175 #[test]
176 fn msgpack_input_detected_correctly() {

Callers

nothing calls this directly

Calls 1

decode_documentFunction · 0.85

Tested by

no test coverage detected