()
| 165 | |
| 166 | #[test] |
| 167 | fn simple_cycle() { |
| 168 | let a = n("A"); |
| 169 | let b = n("B"); |
| 170 | let g = map_of(&[(&a, slice::from_ref(&b)), (&b, slice::from_ref(&a))]); |
| 171 | let sccs = compute_sccs(&g); |
| 172 | assert_eq!(scc_to_vec(&sccs), vec![vec![n("A"), n("B")]]); |
| 173 | } |
| 174 | |
| 175 | #[test] |
| 176 | fn chain_no_cycle() { |
nothing calls this directly
no test coverage detected