ockam_node_test_attribute 0.5.0

Ockam node attribute proc_macros.
Documentation
1
2
3
4
5
6
7
8
9
// This test checks that #[ockam_node_test_attribute::node_test] causes a compile time error
// if the function is passed a parameter of type `ockam::Context` but is unused.

#[ockam_node_test_attribute::node_test]
async fn my_test(_ctx: &mut ockam::Context) -> ockam::Result<()> {
    // _ctx.stop().unwrap();
    let _x = 42 as u8;
    Ok(())
}