//! Thread-local test run ID for log correlation across driver and plugin log entries
use RefCell;
thread_local!
/// Set the test run ID for the current thread. Pass `None` to clear it.
///
/// Should be called by the test framework (pact_consumer, pact_ffi) before any plugin
/// calls, so that the ID is included in `testContext` of outgoing gRPC requests and can
/// be used to correlate plugin log entries with a specific test.
/// Return the test run ID set for the current thread, if any.