macro_rules! assert_vfs_remove_all {
    ($vfs:expr, $path:expr) => { ... };
}
Expand description

Assert the removal of the target path

Assertion Failures

  • Assertion fails if remove_all fails
  • Assertion fails if the target path still exists after the call to remove_all

Examples

use rivia::prelude::*;

let vfs = Vfs::memfs();
assert_vfs_mkdir_p!(vfs, "foo/bar");
assert_vfs_remove_all!(vfs, "foo");
assert_vfs_no_exists!(vfs, "foo/bar");
assert_vfs_no_exists!(vfs, "foo");