()
| 706 | |
| 707 | #[test] |
| 708 | fn test_decode_leaf() { |
| 709 | const LEAF_RLP: [u8; 11] = hex!("ca8320646f8576657262FF"); |
| 710 | let expected = |
| 711 | TrieNode::Leaf { prefix: Nibbles::unpack(bytes!("646f")), value: bytes!("76657262FF") }; |
| 712 | assert_eq!(expected, TrieNode::decode(&mut LEAF_RLP.as_slice()).unwrap()); |
| 713 | } |
| 714 | |
| 715 | #[test] |
| 716 | fn test_decode_leaf_or_extension_empty_path_errors() { |
nothing calls this directly
no outgoing calls
no test coverage detected