Macro rivia::assert_vfs_remove
source · [−]macro_rules! assert_vfs_remove {
($vfs:expr, $path:expr) => { ... };
}Expand description
Assert the removal of the target file or directory
Assertion Failures
- Assertion fails if the target is a directory that contains files
- Assertion fails if the file exists after
removeis called - Assertion fails if the
removecall fails
Examples
use rivia::prelude::*;
let vfs = Vfs::memfs();
assert_vfs_mkfile!(vfs, "foo");
assert_vfs_remove!(vfs, "foo");
assert_vfs_no_exists!(vfs, "foo");