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

Function encode_count_msg

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

Source from the content-addressed store, hash-verified

28
29#[test]
30fn encode_count_msg() {
31 let bytes = encode_count("inserted", 42).unwrap();
32 let json = decode_payload_to_json(&bytes);
33 assert!(json.contains("\"inserted\""));
34 assert!(json.contains("42"));
35}
36
37#[test]
38fn json_passthrough() {

Callers

nothing calls this directly

Calls 2

encode_countFunction · 0.85
decode_payload_to_jsonFunction · 0.70

Tested by

no test coverage detected