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

Function build_is_deterministic

nodedb-query/src/msgpack_scan/sidecar.rs:527–532  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

525
526 #[test]
527 fn build_is_deterministic() {
528 let raw = encode(&json!({"p": 1, "q": 2, "r": 3}));
529 let a = build_sidecar(&raw).unwrap();
530 let b = build_sidecar(&raw).unwrap();
531 assert_eq!(a, b);
532 }
533
534 // ── Hash collision handling ───────────────────────────────────────────
535

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
build_sidecarFunction · 0.70

Tested by

no test coverage detected