MCPcopy Create free account
hub / github.com/BitVM/BitVM / test_round

Function test_round

bitvm/src/hash/blake3_utils.rs:620–636  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

618
619 #[test]
620 fn test_round() {
621 let mut stack = StackTracker::new();
622
623 let tables = TablesVars::new(&mut stack, true);
624
625 let mut var_map: HashMap<u8, StackVariable> = HashMap::new();
626 let mut msg_map: HashMap<u8, StackVariable> = HashMap::new();
627 for i in 0..16 {
628 var_map.insert(i, stack.number_u32(i as u32));
629 msg_map.insert(i, stack.number_u32(i as u32));
630 }
631
632 let start = stack.get_script().len();
633 round(&mut stack, &mut var_map, &msg_map, &tables, false);
634 let end = stack.get_script().len();
635 println!("Round size: {}", end - start);
636 }
637}

Callers

nothing calls this directly

Calls 3

roundFunction · 0.85
lenMethod · 0.80
get_scriptMethod · 0.80

Tested by

no test coverage detected