borrowscope-runtime 0.1.2

Runtime tracking system for BorrowScope
Documentation
1
2
3
4
5
6
7
8
9
10
//! Shared test utilities
//!
//! This module provides shared resources for tests to prevent race conditions.

#[cfg(test)]
lazy_static::lazy_static! {
    /// Global test lock to ensure tests run serially when accessing shared tracker
    /// This is shared across all test modules to prevent race conditions
    pub static ref TEST_LOCK: parking_lot::Mutex<()> = parking_lot::Mutex::new(());
}