Module assert_fs::assert [−][src]
Filesystem assertions.
See PathAssert
.
Examples
ⓘThis example is not tested
use assert_fs::*; 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
BytesContentPathPredicate |
Predicate used by |
StrContentPathPredicate |
Predicate used by |
Traits
IntoPathPredicate |
Used by |
PathAssert |
Assert the state of files within |