fastskill_core/test_utils.rs
1//! Test utilities shared across the crate
2//!
3//! This module provides common test helpers that can be used by both unit tests
4//! in src/ and integration tests in tests/.
5
6use std::sync::Mutex;
7
8/// Global mutex for serializing tests that change the current working directory.
9/// Tests that call `std::env::set_current_dir()` should acquire this lock to prevent
10/// race conditions when running tests in parallel.
11pub static DIR_MUTEX: Mutex<()> = Mutex::new(());