[−][src]Macro tari_test_utils::panic_context
Creates a test counter future Context.
Usage
ⓘ
let mut my_fut = future::ready(()); panic_context!(cx); // cx variable in scope assert!(my_fut.poll_unpin(&mut cx).is_ready());
Creates a test counter future Context.
let mut my_fut = future::ready(()); panic_context!(cx); // cx variable in scope assert!(my_fut.poll_unpin(&mut cx).is_ready());