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

Function single_node

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

Source from the content-addressed store, hash-verified

157
158 #[test]
159 fn single_node() {
160 let a = n("A");
161 let g = map_of(&[(&a, &[])]);
162 let sccs = compute_sccs(&g);
163 assert_eq!(scc_to_vec(&sccs), vec![vec![n("A")]]);
164 }
165
166 #[test]
167 fn simple_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