//! Shared fixtures for the protocol tests: `hx` decodes the hex of a golden packet body. pub fn hx(s: &str) -> Vec { (0..s.len()) .step_by(2) .map(|i| u8::from_str_radix(&s[i..i + 2], 16).unwrap()) .collect() }