Function xpct::be_directory

source ·
pub fn be_directory<'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 directory.

This follows symbolic links.

Examples

use std::path::Path;
use xpct::{expect, be_directory};

expect!(Path::new("/path/to/directory")).to(be_directory());