[−][src]Macro cov_mark::check_count
This is supported on
feature="thread-local"
only.Checks that a specified mark was hit exactly the specified number of times.
Example
struct CoveredDropper; impl Drop for CoveredDropper { fn drop(&mut self) { cov_mark::hit!(covered_dropper_drops); } } #[test] fn drop_count_test() { cov_mark::check_count!(covered_dropper_drops, 2); let _covered_dropper1 = CoveredDropper; let _covered_dropper2 = CoveredDropper; }