[][src]Module assert_fs::assert

Filesystem assertions.

See PathAssert.

Examples

extern crate assert_fs;
extern crate predicates;

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

BytesContentPathPredicate

Predicate used by IntoPathPredicate for bytes.

StrContentPathPredicate

Predicate used by IntoPathPredicate for str.

StrPathPredicate

Predicate used by IntoPathPredicate for str predicates.

Traits

IntoPathPredicate

Used by PathAssert to convert Self into the needed Predicate<Path>.

PathAssert

Assert the state of files within TempDir.