Home
last modified time | relevance | path

Searched refs:assert_ready (Results 1 – 24 of 24) sorted by relevance

/external/rust/crates/tokio-test/src/
Dmacros.rs23 macro_rules! assert_ready { macro
64 use tokio_test::{assert_ready, assert_ok};
65 let val = assert_ready!($e);
69 use tokio_test::{assert_ready, assert_ok};
70 let val = assert_ready!($e, $($msg)*);
97 use tokio_test::{assert_ready, assert_err};
98 let val = assert_ready!($e);
102 use tokio_test::{assert_ready, assert_err};
103 let val = assert_ready!($e, $($msg)*);
169 let val = $crate::assert_ready!($e);
[all …]
/external/rust/crates/tokio/tests/
Dsync_barrier.rs8 use tokio_test::{assert_pending, assert_ready};
23 let wr = assert_ready!(w.poll()); in zero_does_not_block()
28 let wr = assert_ready!(w.poll()); in zero_does_not_block()
39 let wr = assert_ready!(w.poll()); in single()
44 let wr = assert_ready!(w.poll()); in single()
49 let wr = assert_ready!(w.poll()); in single()
62 let wr2 = assert_ready!(w2.poll()); in tango()
63 let wr1 = assert_ready!(w1.poll()); in tango()
86 let mut found_leader = assert_ready!(w.poll()).is_leader(); in lots()
88 let wr = assert_ready!(w.poll()); in lots()
Dsync_rwlock.rs12 use tokio_test::{assert_pending, assert_ready};
26 let _g1 = assert_ready!(t1.poll()); in read_shared()
28 assert_ready!(t2.poll()); in read_shared()
37 let _g1 = assert_ready!(t1.poll()); in write_shared_pending()
48 let _g1 = assert_ready!(t1.poll()); in read_exclusive_pending()
72 assert_ready!(t1.poll()); in exhaust_reading()
81 let _g1 = assert_ready!(t1.poll()); in write_exclusive_pending()
92 let g1 = assert_ready!(t1.poll()); in write_shared_drop()
97 assert_ready!(t2.poll()); in write_shared_drop()
106 let _g1 = assert_ready!(t1.poll()); in write_read_shared_pending()
[all …]
Dsync_notify.rs17 assert_ready!(notified.poll()); in notify_notified_one()
29 assert_ready!(notified.poll()); in notified_one_notify()
45 assert_ready!(notified1.poll()); in notified_multi_notify()
58 assert_ready!(notified1.poll()); in notify_notified_multi()
64 assert_ready!(notified2.poll()); in notify_notified_multi()
81 assert_ready!(notified2.poll()); in notified_drop_notified_notify()
101 assert_ready!(notified2.poll()); in notified_multi_notify_drop_one()
152 assert_ready!(notified2.poll()); in notify_one_after_dropped_all()
Dsync_mutex_owned.rs7 use tokio_test::{assert_pending, assert_ready};
18 let mut g = assert_ready!(t.poll()); in straight_execution()
24 let mut g = assert_ready!(t.poll()); in straight_execution()
30 let g = assert_ready!(t.poll()); in straight_execution()
41 let g = assert_ready!(t1.poll()); in readiness()
49 assert_ready!(t2.poll()); in readiness()
Dsync_mutex.rs7 use tokio_test::{assert_pending, assert_ready};
18 let mut g = assert_ready!(t.poll()); in straight_execution()
24 let mut g = assert_ready!(t.poll()); in straight_execution()
30 let g = assert_ready!(t.poll()); in straight_execution()
42 let g = assert_ready!(t1.poll()); in readiness()
50 assert_ready!(t2.poll()); in readiness()
Dio_driver_drop.rs6 use tokio_test::{assert_err, assert_pending, assert_ready, task};
24 assert_ready!(task.poll()); in tcp_doesnt_block()
46 assert_ready!(task.poll()); in drop_wakes()
Dmacros_try_join.rs3 use tokio_test::{assert_pending, assert_ready, task};
49 let res: Result<(&str, u32), _> = assert_ready!(join.poll()); in two_await()
75 let res = assert_ready!(join.poll()); in err_abort_early()
Dsync_oneshot.rs83 assert_ready!(tx.enter(|cx, mut tx| tx.poll_closed(cx))); in close_rx()
123 assert_ready!(tx.enter(|cx, mut tx| tx.poll_closed(cx))); in explicit_close_poll()
139 assert_ready!(tx.enter(|cx, mut tx| tx.poll_closed(cx))); in explicit_close_poll()
166 assert_ready!(tx.enter(|cx, mut tx| tx.poll_closed(cx))); in explicit_close_try_recv()
268 assert_ready!(task2.enter(|cx, _| tx.poll_closed(cx))); in sender_changes_task()
Dmacros_join.rs3 use tokio_test::{assert_pending, assert_ready, task};
50 let res = assert_ready!(join.poll()); in two_await()
Dsync_watch.rs7 use tokio_test::{assert_pending, assert_ready, assert_ready_err, assert_ready_ok};
167 assert_ready!(t.poll()); in poll_close()
Dmacros_select.rs4 use tokio_test::{assert_ok, assert_pending, assert_ready};
297 let res = assert_ready!(f.poll()); in future_panics_after_poll()
320 assert_ready!(f.poll()); in disable_with_if()
352 let (a, b) = assert_ready!(f.poll()); in join_with_select()
Dtime_sleep.rs10 use tokio_test::{assert_pending, assert_ready, task};
182 assert_ready!(sleep.poll()); in reset_sleep_to_past()
276 assert_ready!(timer in reset_after_firing()
Dsync_mpsc.rs11 assert_err, assert_ok, assert_pending, assert_ready, assert_ready_err, assert_ready_ok,
296 let v = assert_ready!(recv.poll()); in recv_close_gets_none_reserved()
475 let val = assert_ready!(recv.poll()); in ready_close_cancel_bounded()
Dsync_broadcast.rs8 assert_err, assert_ok, assert_pending, assert_ready, assert_ready_err, assert_ready_ok,
Dfs_file_mocked.rs66 use tokio_test::{assert_pending, assert_ready, assert_ready_err, assert_ready_ok, task};
/external/rust/crates/tokio-test/tests/
Dmacros.rs5 assert_pending, assert_ready, assert_ready_eq, assert_ready_err, assert_ready_ok,
30 fn assert_ready() { in assert_ready() function
32 assert_ready!(poll); in assert_ready()
33 assert_ready!(poll, "some message"); in assert_ready()
34 assert_ready!(poll, "{:?}", ()); in assert_ready()
35 assert_ready!(poll, "{:?}", Test::Data); in assert_ready()
42 assert_ready!(poll); in assert_ready_on_pending()
/external/rust/crates/tokio-stream/tests/
Dstream_merge.rs3 use tokio_test::{assert_pending, assert_ready};
38 assert_eq!(Some(1), assert_ready!(rx.poll_next())); in merge_async_streams()
44 assert_eq!(Some(2), assert_ready!(rx.poll_next())); in merge_async_streams()
53 assert_eq!(Some(3), assert_ready!(rx.poll_next())); in merge_async_streams()
58 assert_eq!(None, assert_ready!(rx.poll_next())); in merge_async_streams()
Dstream_chain.rs2 use tokio_test::{assert_pending, assert_ready, task};
59 assert_eq!(Some(1), assert_ready!(stream.poll_next())); in pending_first()
68 assert_eq!(Some(2), assert_ready!(stream.poll_next())); in pending_first()
75 assert_eq!(None, assert_ready!(stream.poll_next())); in pending_first()
Dstream_collect.rs2 use tokio_test::{assert_pending, assert_ready, assert_ready_err, assert_ready_ok, task};
60 let coll = assert_ready!(fut.poll()); in collect_vec_items()
82 let coll = assert_ready!(fut.poll()); in collect_string_items()
104 let coll = assert_ready!(fut.poll()); in collect_str_items()
Dtime_throttle.rs16 assert_ready!(stream.poll_next()); in usage()
27 assert_ready!(stream.poll_next()); in usage()
Dstream_timeout.rs39 let v = assert_ready!(stream.poll_next()); in basic_usage()
57 let v = assert_ready!(stream.poll_next()); in basic_usage()
82 let v = assert_ready!(stream.poll_next()); in return_elapsed_errors_only_once()
Dstream_stream_map.rs2 use tokio_test::{assert_ok, assert_pending, assert_ready, task};
14 match assert_ready!($($t)*) {
23 match assert_ready!($($t)*) {
/external/rust/crates/tokio/src/
Dcoop.rs225 let coop = assert_ready!(task::spawn(()).enter(|cx, _| poll_proceed(cx))); in bugeting()
234 let coop = assert_ready!(task::spawn(()).enter(|cx, _| poll_proceed(cx))); in bugeting()
240 let coop = assert_ready!(task::spawn(()).enter(|cx, _| poll_proceed(cx))); in bugeting()
247 let coop = assert_ready!(task::spawn(()).enter(|cx, _| poll_proceed(cx))); in bugeting()
256 let coop = assert_ready!(task::spawn(()).enter(|cx, _| poll_proceed(cx))); in bugeting()
272 let coop = assert_ready!(task::spawn(()).enter(|cx, _| poll_proceed(cx))); in bugeting()