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

Function window_rejects_zero_sequence

nodedb-cluster/src/rpc_codec/peer_seq.rs:191–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189
190 #[test]
191 fn window_rejects_zero_sequence() {
192 let w = PeerSeqWindow::new();
193 let err = w.accept(1, 0).unwrap_err();
194 assert!(err.to_string().contains("reserved sequence 0"));
195 }
196
197 #[test]
198 fn window_accepts_in_order_gap_within_window() {

Callers

nothing calls this directly

Calls 1

acceptMethod · 0.80

Tested by

no test coverage detected