Available on crate feature
assert
only.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
IntoUtf8PathPredicate
for static byte slices. - Path
Predicate - Adapter used by
IntoUtf8PathPredicate
forPredicate<Path>
instances, such as those in [predicates::path
]. - StrContent
Path Predicate - Adapter used by
IntoUtf8PathPredicate
forstr
andString
. - StrPath
Predicate - Adapter used by
IntoUtf8PathPredicate
forPredicate<str>
instances, such as those in [predicates::str
].
Traits§
- Into
Utf8 Path Predicate - Converts a type into the needed [
Predicate<Utf8Path>
]. - Path
Assert - Assert the state of files within a
Utf8TempDir
.