Thanks to visit codestin.com
Credit goes to docs.rs

Crate ktest

Crate ktest 

Source

Re-exports§

pub use macros::klib::KlibConfig;
pub use macros::klib::KlibConfigBuilder;
pub use test::runner::runner;

Modules§

macros
memory
test

Macros§

debugcon_print
Print to the debug console
debugcon_println
Print to the debug console, with a newline
klib
klib! function-like macro
serial_print
Print to the global serial port
serial_println
Print to the global serial port, with a newline

Functions§

init_harness
Initialize the test harness with the given test group. This function should be called before the main test function is called.
panic
A panic handler that delegates to the test runner’s panic handler. This should be included in libraries which use ktest to allow recovery from panics during tests.

Attribute Macros§

ktest
Re-export the test runner function for use in test binaries. #[ktest] attribute macro