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 remove is called
  • Assertion fails if the remove call 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");