Lines Matching refs:unwrap

1476             let mut vec1: KVec<usize> = KVec::with_capacity(c.len(), GFP_KERNEL).unwrap();  in test_kvec_retain()
1477 let mut vec2: KVec<usize> = KVec::with_capacity(c.len(), GFP_KERNEL).unwrap(); in test_kvec_retain()
1480 vec1.push_within_capacity(i).unwrap(); in test_kvec_retain()
1482 vec2.push_within_capacity(i).unwrap(); in test_kvec_retain()
1504 let mut func = KVec::with_capacity(10, GFP_KERNEL).unwrap(); in test_kvec_retain()
1510 func.push_within_capacity(false).unwrap(); in test_kvec_retain()
1519 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE * 4, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to()
1522 v.push(1, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to()
1523 v.push(2, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to()
1524 v.push(3, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to()
1530 v.shrink_to(PAGE_SIZE, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to()
1543 v.shrink_to(0, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to()
1560 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE * 4, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_empty()
1565 v.shrink_to(0, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_empty()
1577 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_no_op()
1578 v.push(1, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_no_op()
1583 v.shrink_to(capacity_before + 100, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_no_op()
1595 let mut v = KVVec::<u8>::with_capacity(PAGE_SIZE * 4, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_respects_min_capacity()
1599 v.push(i, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_respects_min_capacity()
1604 v.shrink_to(min_cap, GFP_KERNEL).unwrap(); in test_kvvec_shrink_to_respects_min_capacity()