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

Function build_peer_groups_basic

nodedb-query/src/window/frame.rs:294–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292
293 #[test]
294 fn build_peer_groups_basic() {
295 let vals = num_vals(&[1, 1, 2, 3, 3]);
296 let pg = build_peer_groups(&vals);
297 assert_eq!(pg, vec![0, 0, 1, 2, 2]);
298 }
299
300 #[test]
301 fn groups_1_preceding_1_following() {

Callers

nothing calls this directly

Calls 2

num_valsFunction · 0.85
build_peer_groupsFunction · 0.85

Tested by

no test coverage detected