test

Attribute Macro test 

Source
#[test]
Expand description

Marks an async function as a test.

§Usage

use embedded_executor::MemIo;

#[embedded_executor::test]  // Defaults to MemIo
async fn test_basic(executor: _, io: _) {
    // Your test code
}

#[embedded_executor::test(PollingIo)]
async fn test_with_real_io(executor: _, io: _) {
    // Your test code
}