Trait assert_fs::TempDirAssertExt [−][src]
Assert the state of files within TempDir
.
Examples
ⓘThis example is not tested
use assert_fs::*; let temp = assert_fs::TempDir::new().unwrap(); let input_file = temp.child("foo.txt"); input_file.touch().unwrap(); // ... do something with input_file ... temp.child("bar.txt").assert(predicates::path::missing()); temp.close().unwrap();
Required Methods
ⓘImportant traits for &'a mut R
fn assert(&self, pred: &Predicate<Path>) -> &Self
Wrap with an interface for that provides assertions on the TempDir
.