Expand description
Filesystem assertions.
See PathAssert
.
§Examples
use assert_fs::prelude::*;
use predicates::prelude::*;
let temp = assert_fs::TempDir::new().unwrap();
let input_file = temp.child("foo.txt");
input_file.touch().unwrap();
// ... do something with input_file ...
input_file.assert("");
temp.child("bar.txt").assert(predicate::path::missing());
temp.close().unwrap();
Structs§
- Bytes
Content Path Predicate - Keep
predicates
concrete Predicates out of our public API.predicates_core::Predicate
used byIntoPathPredicate
for bytes. - StrContent
Path Predicate - Keep
predicates
concrete Predicates out of our public API.predicates_core::Predicate
used byIntoPathPredicate
forstr
. - StrPath
Predicate - Keep
predicates
concrete Predicates out of our public API.predicates_core::Predicate
used byIntoPathPredicate
forstr
predicates.
Traits§
- Into
Path Predicate - Used by
PathAssert
to convert Self into the neededpredicates_core::Predicate<Path>
. - Path
Assert - Assert the state of files within
TempDir
.