Searched refs:no_capacity (Results 1 – 1 of 1) sorted by relevance
775 let mut no_capacity: RingBuffer<u8> = RingBuffer::new(vec![]); in test_buffer_with_no_capacity() localVariable779 assert_eq!(no_capacity.get_unallocated(0, 0), &[]); in test_buffer_with_no_capacity()780 assert_eq!(no_capacity.get_allocated(0, 0), &[]); in test_buffer_with_no_capacity()781 no_capacity.dequeue_allocated(0); in test_buffer_with_no_capacity()782 assert_eq!(no_capacity.enqueue_many(0), &[]); in test_buffer_with_no_capacity()783 assert_eq!(no_capacity.enqueue_one(), Err(Full)); in test_buffer_with_no_capacity()784 assert_eq!(no_capacity.contiguous_window(), 0); in test_buffer_with_no_capacity()