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

Function meta_hash_vec_sequential

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

Source from the content-addressed store, hash-verified

387
388 #[test]
389 fn meta_hash_vec_sequential() {
390 let names = vec![mk_name("a"), mk_name("b")];
391 let mut h1 = blake3::Hasher::new();
392 names.meta_hash(&mut h1);
393
394 let mut h2 = blake3::Hasher::new();
395 mk_name("a").meta_hash(&mut h2);
396 mk_name("b").meta_hash(&mut h2);
397
398 assert_eq!(h1.finalize(), h2.finalize());
399 }
400
401 #[test]
402 fn meta_hash_bool() {

Callers

nothing calls this directly

Calls 2

mk_nameFunction · 0.70
meta_hashMethod · 0.45

Tested by

no test coverage detected