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

Function cascade_depth_check_fails_at_limit

nodedb/tests/trigger_execution.rs:425–431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

423
424#[test]
425fn cascade_depth_check_fails_at_limit() {
426 let result = nodedb::control::trigger::fire_common::check_cascade_depth(16, "orders");
427 assert!(result.is_err());
428 let err = result.unwrap_err().to_string();
429 assert!(err.contains("cascade depth exceeded"), "got: {err}");
430 assert!(err.contains("orders"), "got: {err}");
431}
432
433#[test]
434fn cascade_depth_check_fails_over_limit() {

Callers

nothing calls this directly

Calls 2

check_cascade_depthFunction · 0.85
to_stringMethod · 0.80

Tested by

no test coverage detected