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

Function meta_hash_name_writes_bytes

crates/kernel/src/mode.rs:339–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337
338 #[test]
339 fn meta_hash_name_writes_bytes() {
340 let name = mk_name("x");
341 let mut h = blake3::Hasher::new();
342 name.meta_hash(&mut h);
343 // Should have written 32 bytes (blake3 hash of name)
344 let result = h.finalize();
345 // Just check it's not the empty hash
346 assert_ne!(
347 *result.as_bytes(),
348 *blake3::Hasher::new().finalize().as_bytes()
349 );
350 }
351
352 #[test]
353 fn meta_hash_unit_is_noop() {

Callers

nothing calls this directly

Calls 3

finalizeMethod · 0.80
mk_nameFunction · 0.70
meta_hashMethod · 0.45

Tested by

no test coverage detected