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

Function next_interval_minimum_1s

nodedb/src/event/alert/executor.rs:316–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314
315 #[test]
316 fn next_interval_minimum_1s() {
317 let reg = AlertRegistry::new();
318 let mut a = make_alert("fast");
319 a.window_ms = 500;
320 reg.register(a);
321 assert_eq!(next_eval_interval_ms(&reg), 1_000);
322 }
323
324 #[test]
325 fn next_interval_default_1min() {

Callers

nothing calls this directly

Calls 2

make_alertFunction · 0.70
registerMethod · 0.45

Tested by

no test coverage detected