pub struct AsyncPilot;Expand description
Async test runner for Pilot
Provides a more ergonomic way to run async tests.
§Example
ⓘ
use revue::testing::*;
#[tokio::test]
async fn test_async_pilot() {
let view = MyView::new();
let mut app = TestApp::new(view);
let pilot = Pilot::new(&mut app);
pilot.type_text("hello");
pilot.wait_ms_async(100).await;
pilot.assert_contains("hello");
}Implementations§
Auto Trait Implementations§
impl Freeze for AsyncPilot
impl RefUnwindSafe for AsyncPilot
impl Send for AsyncPilot
impl Sync for AsyncPilot
impl Unpin for AsyncPilot
impl UnsafeUnpin for AsyncPilot
impl UnwindSafe for AsyncPilot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more