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

Function cycle_detected

nodedb-cluster/src/subsystem/topo_sort.rs:207–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205
206 #[test]
207 fn cycle_detected() {
208 let subsystems = vec![mock("x", &["y"]), mock("y", &["x"])];
209 let err = topo_sort(&subsystems).unwrap_err();
210 assert!(matches!(err, TopoError::Cycle { .. }));
211 }
212
213 #[test]
214 fn missing_dependency() {

Callers

nothing calls this directly

Calls 1

topo_sortFunction · 0.85

Tested by

no test coverage detected