Function run_test

pub unsafe fn run_test<T>(
    test: impl FnOnce(Domain, Screen) -> T + UnwindSafe,
) -> T
Expand description

Runs provided closure with a newly initialized test runtime.

§Safety

User must ensure that no other threads are currently running Kanzi. In general this function shouldn’t be ever used directly and should only be used for integrational and doc tests.