Lines Matching refs:c
40 let c = pq.pop(i); in test_payload_queue_push_no_check() localVariable
41 assert!(c.is_some(), "pop should succeed"); in test_payload_queue_push_no_check()
42 if let Some(c) = c { in test_payload_queue_push_no_check()
43 assert_eq!(c.tsn, i, "TSN should match"); in test_payload_queue_push_no_check()
58 let c = pq.pop(i); in test_payload_queue_push_no_check() localVariable
59 assert!(c.is_some(), "pop should succeed"); in test_payload_queue_push_no_check()
60 if let Some(c) = c { in test_payload_queue_push_no_check()
61 assert_eq!(c.tsn, i, "TSN should match"); in test_payload_queue_push_no_check()
150 let c = pq.get(1); in test_payload_queue_mark_all_to_retrasmit() localVariable
151 assert!(c.is_some(), "should be true"); in test_payload_queue_mark_all_to_retrasmit()
152 assert!(c.unwrap().retransmit, "should be marked as retransmit"); in test_payload_queue_mark_all_to_retrasmit()
153 let c = pq.get(2); in test_payload_queue_mark_all_to_retrasmit() localVariable
154 assert!(c.is_some(), "should be true"); in test_payload_queue_mark_all_to_retrasmit()
155 assert!(!c.unwrap().retransmit, "should NOT be marked as retransmit"); in test_payload_queue_mark_all_to_retrasmit()
156 let c = pq.get(3); in test_payload_queue_mark_all_to_retrasmit() localVariable
157 assert!(c.is_some(), "should be true"); in test_payload_queue_mark_all_to_retrasmit()
158 assert!(c.unwrap().retransmit, "should be marked as retransmit"); in test_payload_queue_mark_all_to_retrasmit()
175 let c = pq.get(1); in test_payload_queue_reset_retransmit_flag_on_ack() localVariable
176 assert!(c.is_some(), "should be true"); in test_payload_queue_reset_retransmit_flag_on_ack()
177 assert!(c.unwrap().retransmit, "should be marked as retransmit"); in test_payload_queue_reset_retransmit_flag_on_ack()
178 let c = pq.get(2); in test_payload_queue_reset_retransmit_flag_on_ack() localVariable
179 assert!(c.is_some(), "should be true"); in test_payload_queue_reset_retransmit_flag_on_ack()
180 assert!(!c.unwrap().retransmit, "should NOT be marked as retransmit"); in test_payload_queue_reset_retransmit_flag_on_ack()
181 let c = pq.get(3); in test_payload_queue_reset_retransmit_flag_on_ack() localVariable
182 assert!(c.is_some(), "should be true"); in test_payload_queue_reset_retransmit_flag_on_ack()
183 assert!(c.unwrap().retransmit, "should be marked as retransmit"); in test_payload_queue_reset_retransmit_flag_on_ack()
184 let c = pq.get(4); in test_payload_queue_reset_retransmit_flag_on_ack() localVariable
185 assert!(c.is_some(), "should be true"); in test_payload_queue_reset_retransmit_flag_on_ack()
186 assert!(!c.unwrap().retransmit, "should NOT be marked as retransmit"); in test_payload_queue_reset_retransmit_flag_on_ack()
239 let c = pq.get(i); in test_pending_base_queue_push_and_pop() localVariable
240 assert!(c.is_some(), "should not be none"); in test_pending_base_queue_push_and_pop()
241 assert_eq!(c.unwrap().tsn, i as u32, "TSN should match"); in test_pending_base_queue_push_and_pop()
245 let c = pq.pop_front(); in test_pending_base_queue_push_and_pop() localVariable
246 assert!(c.is_some(), "should not be none"); in test_pending_base_queue_push_and_pop()
247 assert_eq!(c.unwrap().tsn, i, "TSN should match"); in test_pending_base_queue_push_and_pop()
254 let c = pq.pop_front(); in test_pending_base_queue_push_and_pop() localVariable
255 assert!(c.is_some(), "should not be none"); in test_pending_base_queue_push_and_pop()
256 assert_eq!(c.unwrap().tsn, i, "TSN should match"); in test_pending_base_queue_push_and_pop()
286 let c = pq.peek(); in test_pending_queue_push_and_pop() localVariable
287 assert!(c.is_some(), "peek error"); in test_pending_queue_push_and_pop()
288 let c = c.unwrap(); in test_pending_queue_push_and_pop() localVariable
289 assert_eq!(c.tsn, i, "TSN should match"); in test_pending_queue_push_and_pop()
290 let (beginning_fragment, unordered) = (c.beginning_fragment, c.unordered); in test_pending_queue_push_and_pop()
304 let c = pq.peek(); in test_pending_queue_push_and_pop() localVariable
305 assert!(c.is_some(), "peek error"); in test_pending_queue_push_and_pop()
306 let c = c.unwrap(); in test_pending_queue_push_and_pop() localVariable
307 assert_eq!(c.tsn, i, "TSN should match"); in test_pending_queue_push_and_pop()
308 let (beginning_fragment, unordered) = (c.beginning_fragment, c.unordered); in test_pending_queue_push_and_pop()
332 let c = pq.peek(); in test_pending_queue_unordered_wins() localVariable
333 assert!(c.is_some(), "peek error"); in test_pending_queue_unordered_wins()
334 let c = c.unwrap(); in test_pending_queue_unordered_wins() localVariable
335 assert_eq!(c.tsn, 1, "TSN should match"); in test_pending_queue_unordered_wins()
336 let (beginning_fragment, unordered) = (c.beginning_fragment, c.unordered); in test_pending_queue_unordered_wins()
340 let c = pq.peek(); in test_pending_queue_unordered_wins() localVariable
341 assert!(c.is_some(), "peek error"); in test_pending_queue_unordered_wins()
342 let c = c.unwrap(); in test_pending_queue_unordered_wins() localVariable
343 assert_eq!(c.tsn, 3, "TSN should match"); in test_pending_queue_unordered_wins()
344 let (beginning_fragment, unordered) = (c.beginning_fragment, c.unordered); in test_pending_queue_unordered_wins()
348 let c = pq.peek(); in test_pending_queue_unordered_wins() localVariable
349 assert!(c.is_some(), "peek error"); in test_pending_queue_unordered_wins()
350 let c = c.unwrap(); in test_pending_queue_unordered_wins() localVariable
351 assert_eq!(c.tsn, 0, "TSN should match"); in test_pending_queue_unordered_wins()
352 let (beginning_fragment, unordered) = (c.beginning_fragment, c.unordered); in test_pending_queue_unordered_wins()
356 let c = pq.peek(); in test_pending_queue_unordered_wins() localVariable
357 assert!(c.is_some(), "peek error"); in test_pending_queue_unordered_wins()
358 let c = c.unwrap(); in test_pending_queue_unordered_wins() localVariable
359 assert_eq!(c.tsn, 2, "TSN should match"); in test_pending_queue_unordered_wins()
360 let (beginning_fragment, unordered) = (c.beginning_fragment, c.unordered); in test_pending_queue_unordered_wins()
382 let c = pq.peek(); in test_pending_queue_fragments() localVariable
383 assert!(c.is_some(), "peek error"); in test_pending_queue_fragments()
384 let c = c.unwrap(); in test_pending_queue_fragments() localVariable
385 assert_eq!(c.tsn, exp, "TSN should match"); in test_pending_queue_fragments()
386 let (beginning_fragment, unordered) = (c.beginning_fragment, c.unordered); in test_pending_queue_fragments()
401 let c = pq.peek(); in test_pending_queue_selection_persistence() localVariable
402 assert!(c.is_some(), "peek error"); in test_pending_queue_selection_persistence()
403 let c = c.unwrap(); in test_pending_queue_selection_persistence() localVariable
404 assert_eq!(c.tsn, 0, "TSN should match"); in test_pending_queue_selection_persistence()
405 let (beginning_fragment, unordered) = (c.beginning_fragment, c.unordered); in test_pending_queue_selection_persistence()
416 let c = pq.peek(); in test_pending_queue_selection_persistence() localVariable
417 assert!(c.is_some(), "peek error"); in test_pending_queue_selection_persistence()
418 let c = c.unwrap(); in test_pending_queue_selection_persistence() localVariable
419 assert_eq!(c.tsn, exp, "TSN should match"); in test_pending_queue_selection_persistence()
420 let (beginning_fragment, unordered) = (c.beginning_fragment, c.unordered); in test_pending_queue_selection_persistence()