Lines Matching refs:next_index
20 assert_eq!(bitmap.next_index(0), None); in test_empty_bitmap_32()
33 assert_eq!(bitmap.next_index(0), Some(1)); in test_empty_bitmap_32()
50 assert_eq!(bitmap.next_index(0), None); in test_empty_bitmap_64()
63 assert_eq!(bitmap.next_index(0), Some(1)); in test_empty_bitmap_64()
82 assert_eq!(bitmap.next_index(0), None); in test_alloc_bitmap_32_first_1()
90 assert_eq!(bitmap.next_index(2), None); in test_alloc_bitmap_32_first_1()
101 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_32_first_1()
109 assert_eq!(bitmap.next_index(2), Some(3)); in test_alloc_bitmap_32_first_1()
123 assert_eq!(bitmap.next_index(0), Some(15)); in test_alloc_bitmap_32_middle_1()
124 assert_eq!(bitmap.next_index(15), None); in test_alloc_bitmap_32_middle_1()
132 assert_eq!(bitmap.next_index(2), Some(15)); in test_alloc_bitmap_32_middle_1()
143 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_32_middle_1()
151 assert_eq!(bitmap.next_index(2), Some(3)); in test_alloc_bitmap_32_middle_1()
165 assert_eq!(bitmap.next_index(0), Some(31)); in test_alloc_bitmap_32_last_1()
166 assert_eq!(bitmap.next_index(31), None); in test_alloc_bitmap_32_last_1()
174 assert_eq!(bitmap.next_index(2), Some(31)); in test_alloc_bitmap_32_last_1()
185 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_32_last_1()
193 assert_eq!(bitmap.next_index(2), Some(3)); in test_alloc_bitmap_32_last_1()
207 assert_eq!(bitmap.next_index(0), None); in test_alloc_bitmap_64_first_1()
215 assert_eq!(bitmap.next_index(2), None); in test_alloc_bitmap_64_first_1()
226 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_64_first_1()
234 assert_eq!(bitmap.next_index(2), Some(3)); in test_alloc_bitmap_64_first_1()
248 assert_eq!(bitmap.next_index(0), Some(15)); in test_alloc_bitmap_64_middle_1()
249 assert_eq!(bitmap.next_index(15), None); in test_alloc_bitmap_64_middle_1()
257 assert_eq!(bitmap.next_index(2), Some(15)); in test_alloc_bitmap_64_middle_1()
268 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_64_middle_1()
276 assert_eq!(bitmap.next_index(2), Some(3)); in test_alloc_bitmap_64_middle_1()
290 assert_eq!(bitmap.next_index(0), Some(63)); in test_alloc_bitmap_64_last_1()
291 assert_eq!(bitmap.next_index(63), None); in test_alloc_bitmap_64_last_1()
299 assert_eq!(bitmap.next_index(2), Some(63)); in test_alloc_bitmap_64_last_1()
310 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_64_last_1()
318 assert_eq!(bitmap.next_index(2), Some(3)); in test_alloc_bitmap_64_last_1()
334 assert_eq!(bitmap.next_index(0), Some(63)); in test_alloc_bitmap_64_two_1_first()
335 assert_eq!(bitmap.next_index(63), None); in test_alloc_bitmap_64_two_1_first()
350 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_64_two_1_first()
358 assert_eq!(bitmap.next_index(2), Some(3)); in test_alloc_bitmap_64_two_1_first()
375 assert_eq!(bitmap.next_index(0), Some(15)); in test_alloc_bitmap_64_two_1_middle()
376 assert_eq!(bitmap.next_index(15), Some(63)); in test_alloc_bitmap_64_two_1_middle()
377 assert_eq!(bitmap.next_index(63), None); in test_alloc_bitmap_64_two_1_middle()
392 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_64_two_1_middle()
401 assert_eq!(bitmap.next_index(2), Some(3)); in test_alloc_bitmap_64_two_1_middle()
418 assert_eq!(bitmap.next_index(0), Some(127)); in test_alloc_bitmap_128_two_1_seperate_first()
419 assert_eq!(bitmap.next_index(127), None); in test_alloc_bitmap_128_two_1_seperate_first()
435 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_128_two_1_seperate_first()
459 assert_eq!(bitmap.next_index(0), Some(63)); in test_alloc_bitmap_128_two_1_nearby_middle()
460 assert_eq!(bitmap.next_index(63), Some(64)); in test_alloc_bitmap_128_two_1_nearby_middle()
461 assert_eq!(bitmap.next_index(64), None); in test_alloc_bitmap_128_two_1_nearby_middle()
481 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_128_two_1_nearby_middle()
484 assert_eq!(bitmap.next_index(63), Some(65)); in test_alloc_bitmap_128_two_1_nearby_middle()
506 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_full_32()
507 assert_eq!(bitmap.next_index(31), None); in test_alloc_bitmap_full_32()
523 assert_eq!(bitmap.next_index(0), None); in test_alloc_bitmap_full_32()
544 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_full_64()
545 assert_eq!(bitmap.next_index(63), None); in test_alloc_bitmap_full_64()
561 assert_eq!(bitmap.next_index(0), None); in test_alloc_bitmap_full_64()
582 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_full_100()
583 assert_eq!(bitmap.next_index(99), None); in test_alloc_bitmap_full_100()
599 assert_eq!(bitmap.next_index(0), None); in test_alloc_bitmap_full_100()
620 assert_eq!(bitmap.next_index(0), Some(1)); in test_alloc_bitmap_full_128()
621 assert_eq!(bitmap.next_index(127), None); in test_alloc_bitmap_full_128()
637 assert_eq!(bitmap.next_index(0), None); in test_alloc_bitmap_full_128()