()
| 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 | } |
nothing calls this directly
no test coverage detected