Skip to main content

checkout_guard

Macro checkout_guard 

Source
macro_rules! checkout_guard {
    ($($lib:expr),* $(,)?) => { ... };
}
Expand description

Runs [guard] for the invoking crate when its test binary starts, from the platform’s initializer section (as the ctor crate does). Invoke it once per test binary: at a crate’s root, behind #[cfg(test)] where the crate has agentmux-common only as a dev-dependency, and at the top of each file under tests/. Pass the CHECKOUT_DIR of each other workspace library the binary links (agentmux_common’s is always checked).