//! Test-only helpers for filesystem fixtures.
use PathBuf;
use Once;
use TempDir;
/// Create a `TempDir` rooted at `<crate>/.greentic-mcp-tests/` instead of the
/// system temp directory.
///
/// On macOS, `std::env::temp_dir()` resolves through `/var → /private/var`,
/// which causes `Path::starts_with` and `assert_eq!` checks against
/// `tempfile::tempdir()` results to fail when one side has been canonicalized.
/// Anchoring under the workspace avoids that symlink chain entirely.