cursor_completely_consumed

Function cursor_completely_consumed 

Source
pub fn cursor_completely_consumed<T>(cursor: &Cursor<T>)
where T: AsRef<[u8]>,
Expand description

Asserts cursor position has reached the end. This is useful for testing that a cursor has been completely consumed.

ยงExample

use std::io::Cursor;
use common_testing::assert;

#[test]
fn test_1() {
 let cursor = Cursor::new("abc");
 assert::cursor_completely_consumed(&cursor);
}