• Home
  • Raw
  • Download

Lines Matching refs:cnt

29     let mut cnt = 0;  in run_until_single_future()  localVariable
34 cnt += 1; in run_until_single_future()
39 assert_eq!(cnt, 1); in run_until_single_future()
75 let cnt = Rc::new(Cell::new(0)); in run_executes_spawned() localVariable
76 let cnt2 = cnt.clone(); in run_executes_spawned()
100 assert_eq!(cnt.get(), 1); in run_executes_spawned()
107 let cnt = Rc::new(Cell::new(0)); in run_spawn_many() localVariable
113 let cnt = cnt.clone(); in run_spawn_many() localVariable
117 cnt.set(cnt.get() + 1); in run_spawn_many()
126 assert_eq!(cnt.get(), ITER); in run_spawn_many()
139 let cnt = Rc::new(Cell::new(0)); in try_run_one_executes_one_ready() localVariable
147 let cnt = cnt.clone(); in try_run_one_executes_one_ready() localVariable
151 cnt.set(cnt.get() + 1); in try_run_one_executes_one_ready()
161 assert_eq!(cnt.get(), i); in try_run_one_executes_one_ready()
163 assert_eq!(cnt.get(), i + 1); in try_run_one_executes_one_ready()
172 let cnt = Rc::new(Cell::new(0)); in try_run_one_returns_on_no_progress() localVariable
179 let cnt = cnt.clone(); in try_run_one_returns_on_no_progress() localVariable
184 cnt.set(cnt.get() + 1); in try_run_one_returns_on_no_progress()
186 if cnt.get() == ITER { in try_run_one_returns_on_no_progress()
198 assert_eq!(cnt.get(), i); in try_run_one_returns_on_no_progress()
200 assert_eq!(cnt.get(), i + 1); in try_run_one_returns_on_no_progress()
206 assert_eq!(cnt.get(), ITER); in try_run_one_returns_on_no_progress()
213 let cnt = Rc::new(Cell::new(0)); in try_run_one_runs_sub_futures() localVariable
216 let cnt1 = cnt.clone(); in try_run_one_runs_sub_futures()
234 assert_eq!(cnt.get(), 2); in try_run_one_runs_sub_futures()
248 let cnt = Rc::new(Cell::new(0)); in run_until_stalled_returns_multiple_times() localVariable
250 let cnt1 = cnt.clone(); in run_until_stalled_returns_multiple_times()
253 assert_eq!(cnt.get(), 1); in run_until_stalled_returns_multiple_times()
255 let cnt2 = cnt.clone(); in run_until_stalled_returns_multiple_times()
258 assert_eq!(cnt.get(), 2); in run_until_stalled_returns_multiple_times()
265 let cnt = Rc::new(Cell::new(0)); in run_until_stalled_runs_spawned_sub_futures() localVariable
268 let cnt1 = cnt.clone(); in run_until_stalled_runs_spawned_sub_futures()
286 assert_eq!(cnt.get(), 2); in run_until_stalled_runs_spawned_sub_futures()
294 let cnt = Rc::new(Cell::new(0)); in run_until_stalled_executes_all_ready() localVariable
303 let cnt = cnt.clone(); in run_until_stalled_executes_all_ready() localVariable
307 cnt.set(cnt.get() + 1); in run_until_stalled_executes_all_ready()
316 assert_eq!(cnt.get(), i * PER_ITER); in run_until_stalled_executes_all_ready()
318 assert_eq!(cnt.get(), (i + 1) * PER_ITER); in run_until_stalled_executes_all_ready()