//! Shared helpers for unit tests. Compiled only under `cfg(test)`.
use ;
use ;
/// A unique path under the system temp dir, namespaced by `label`. Uniqueness is
/// guaranteed within a process by a monotonic counter (and the pid separates
/// concurrent test binaries), so no time or RNG source is needed. The path is
/// *not* created — use [`tempdir`] when you want the directory to exist.
/// Like [`temp_path`], but creates the directory before returning it.
/// Remove a temp directory and its contents, ignoring any error (e.g. already
/// gone). Used in test teardown.