Expand description
Filesystem assertions.
See PathAssert.
§Examples
use camino_tempfile_ext::prelude::*;
use predicates::prelude::*;
let temp = Utf8TempDir::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 - Adapter used by
IntoUtf8PathPredicatefor static byte slices. - Path
Predicate - Adapter used by
IntoUtf8PathPredicateforPredicate<Path>instances, such as those inpredicates::path. - StrContent
Path Predicate - Adapter used by
IntoUtf8PathPredicateforstrandString. - StrPath
Predicate - Adapter used by
IntoUtf8PathPredicateforPredicate<str>instances, such as those inpredicates::str.
Traits§
- Into
Utf8 Path Predicate - Converts a type into the needed [
Predicate<Utf8Path>]. - Path
Assert - Assert the state of files within a
Utf8TempDir.