Skip to main content

test_root

Function test_root 

Source
pub fn test_root() -> CapRoot
Expand description

Creates a capability root for testing. Bypasses the singleton check.

Available in debug/test builds only (#[cfg(debug_assertions)]). Cannot be enabled in release builds — there is no feature flag. Can be called multiple times without panicking — essential for parallel tests.