Function xpct::be_symlink
source · pub fn be_symlink<'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 symbolic link.
Examples
use std::path::Path;
use xpct::{expect, be_symlink};
expect!(Path::new("/path/to/symlink")).to(be_symlink());