()
| 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() { |
nothing calls this directly
no test coverage detected