use std::env; use std::path::PathBuf; pub fn exe_path() -> PathBuf { env::current_exe().unwrap() } pub fn root() -> PathBuf { exe_path().parent().unwrap().parent().unwrap().parent().unwrap().join("tests") } pub fn fixtures() -> PathBuf { root().join("fixtures") } pub fn fixture(name: &str) -> PathBuf { fixtures().join(name) }