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

Function single_peer

nodedb-array/src/sync/ack.rs:106–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104
105 #[test]
106 fn single_peer() {
107 let mut av = AckVector::new();
108 av.record(r(7), hlc(999));
109 assert_eq!(av.min_ack_hlc(), Some(hlc(999)));
110 assert_eq!(av.ack_for(r(7)), Some(hlc(999)));
111 assert_eq!(av.ack_for(r(8)), None);
112 }
113
114 #[test]
115 fn serialize_roundtrip() {

Callers

nothing calls this directly

Calls 3

rFunction · 0.70
hlcFunction · 0.70
recordMethod · 0.45

Tested by

no test coverage detected