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

Function anon_same_display_regardless_of_addr

crates/kernel/src/id.rs:156–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154
155 #[test]
156 fn anon_same_display_regardless_of_addr() {
157 let id1 = KId::<Anon>::new(mk_addr("foo"), ());
158 let id2 = KId::<Anon>::new(mk_addr("bar"), ());
159 // Different addresses produce different hashes
160 assert_ne!(format!("{id1}"), format!("{id2}"));
161 }
162
163 #[test]
164 fn meta_equality_includes_name() {

Callers

nothing calls this directly

Calls 1

mk_addrFunction · 0.70

Tested by

no test coverage detected