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

Function test_basic_equiv

crates/kernel/src/equiv.rs:148–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146 None => return false,
147 };
148 let n2 = match self.key_to_node.get(k2) {
149 Some(&n) => n,
150 None => return false,
151 };
152 self.find(n1) == self.find(n2)
153 }
154
155 /// Find the root representative key for a given composite key.
156 /// Returns None if the key is not in the union-find.
157 ///
158 /// Like `is_equiv`, takes the lookup key by reference so callers can

Callers

nothing calls this directly

Calls 2

add_equivMethod · 0.80
addrFunction · 0.70

Tested by

no test coverage detected