// used to make queries into tests/resources dryer, with quicker error messages on nonexistent paths
used to make queries into tests/resources dryer, with quicker error messages on nonexistent paths
used to make queries into tests / resources dryer with quicker error messages on nonexistent paths
pub fn resource(path: &str) -> PathBuf {
    let dir = path_abs::PathDir::new("tests/resources").unwrap_or_else(|e| panic!("{}", e));
    let path = path_abs::PathAbs::new(dir.as_path().join(path)).unwrap_or_else(|e| panic!("{}", e));
    if !path.as_path().exists() {
        panic!("{}: Path does not exist", path.as_path().display())
    }
    path.as_path().to_owned()
}
pub fn resource ( path : & str ) -> PathBuf { let dir = path_abs :: PathDir :: new ( " " ) . unwrap_or_else ( | e | panic ! ( " " e ) ) ; let path = path_abs :: PathAbs :: new ( dir . as_path ( ) . join ( path ) ) . unwrap_or_else ( | e | panic ! ( " " e ) ) ; if ! path . as_path ( ) . exists ( ) { panic ! ( " " path as_path ( ) display ( ) ) } path . as_path ( ) . to_owned ( ) }
used to make queries into tests/resources dryer, with quicker error messages on nonexistent paths
used to make queries into tests / resources dryer with quicker error messages on nonexistent paths
path
&str