use std::path::PathBuf; pub type Error = Box; pub type Result = std::result::Result; pub fn fixture_bytes(path: &str) -> Vec { fn fixture_path(path: &str) -> PathBuf { PathBuf::from("tests").join("fixtures").join(path) } std::fs::read(fixture_path(path)).expect("fixture to be present and readable") } mod client;