Function xpct::be_existing_file
source · pub fn be_existing_file<'a, Actual>() -> Matcher<'a, Actual, Actual>where
Actual: Debug + AsRef<Path> + 'a,
Expand description
Succeeds when the actual value is the path of an existing file.
This follows symbolic links.
Examples
use std::path::Path;
use xpct::{expect, be_existing_file};
expect!(Path::new("/path/to/file")).to(be_existing_file());