[][src]Function sgx_tunittest::rsgx_unit_test

pub fn rsgx_unit_test<F, R>(
    ncases: &mut u64,
    failurecases: &mut Vec<String>,
    f: F,
    name: &str
) where
    F: FnOnce() -> R + UnwindSafe

Perform one test case at a time.

This is the core function of sgx_tunittest. It runs one test case at a time and saves the result. On test passes, it increases the passed counter and on test fails, it records the failed test. Required test function must be Fn(), taking nothing as input and returns nothing.