MCPcopy Create free account
hub / github.com/argumentcomputer/ix / simple_cycle

Function simple_cycle

crates/compile/src/condense.rs:167–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

map_ofFunction · 0.85
compute_sccsFunction · 0.85
nFunction · 0.70

Tested by

no test coverage detected