1 //! Fuzzing helpers.
2 
3 use super::Options;
4 use std::borrow::Cow;
5 
6 /// Exposed for fuzzing so we can check the slow path is correct.
fill_slow_path<'a>(text: &str, options: Options<'_>) -> String7 pub fn fill_slow_path<'a>(text: &str, options: Options<'_>) -> String {
8     super::fill_slow_path(text, options)
9 }
10 
11 /// Exposed for fuzzing so we can check the slow path is correct.
wrap_single_line<'a>(line: &'a str, options: &Options<'_>, lines: &mut Vec<Cow<'a, str>>)12 pub fn wrap_single_line<'a>(line: &'a str, options: &Options<'_>, lines: &mut Vec<Cow<'a, str>>) {
13     super::wrap_single_line(line, options, lines);
14 }
15 
16 /// Exposed for fuzzing so we can check the slow path is correct.
wrap_single_line_slow_path<'a>( line: &'a str, options: &Options<'_>, lines: &mut Vec<Cow<'a, str>>, )17 pub fn wrap_single_line_slow_path<'a>(
18     line: &'a str,
19     options: &Options<'_>,
20     lines: &mut Vec<Cow<'a, str>>,
21 ) {
22     super::wrap_single_line_slow_path(line, options, lines)
23 }
24