A Rust helper crate for testing drop-semantics.
When implementing one's own smart pointers or collections in Rust one tends to end up having to resort to manual memory management using
std::ptr, including manual drop management. At which point one will want to write unit tests for making sure the implementation works as one expects it to.
This is where
droptest comes in handy!
use *; let registry = default; let guard = registry.new_guard; let guard_id = guard.id; assert_no_drop!; drop; assert_drop!;