Macro fungus::assert_exists[][src]

macro_rules! assert_exists {
    ($path:expr) => { ... };
}

Assert that a file or directory exists

Examples

use fungus::assert::*;
create_test_setup_func!();

let tmpdir = assert_setup!("assert_exists");
assert_exists!(&tmpdir);
let file = tmpdir.mash("file");
sys::touch(&file).unwrap();
assert_exists!(&file);
assert_remove_all!(&tmpdir);