Function predicates::path::missing

source ·
pub fn missing() -> ExistencePredicate
Expand description

Creates a new Predicate that ensures the path doesn’t exist.

§Examples

use std::path::Path;
use predicates::prelude::*;

let predicate_fn = predicate::path::missing();
assert_eq!(true, predicate_fn.eval(Path::new("non-existent-file.foo")));