Assert a std::io::Read read_to_string() is a match to a regex.
use std::io::Read; use regex::Regex; let mut reader = "hello".as_bytes(); let matcher = Regex::new(r"ell").unwrap(); assert_io_read_to_string_matches!(reader, matcher);
assert_io_read_to_string_matches
assert_io_read_to_string_matches_as_result
debug_assert_io_read_to_string_matches