(
files: &std::collections::BTreeMap<String, Vec<u8>>,
pattern: &str,
opts: ContentSearchOptions,
)
| 706 | use super::*; |
| 707 | |
| 708 | fn streaming( |
| 709 | files: &std::collections::BTreeMap<String, Vec<u8>>, |
| 710 | pattern: &str, |
| 711 | opts: ContentSearchOptions, |
| 712 | ) -> ContentSearchResult { |
| 713 | RecordedContentSearch::new(files.keys().map(String::as_str), pattern, opts) |
| 714 | .unwrap() |
| 715 | .run::<std::convert::Infallible>(|path| Ok(Some(files[path].clone()))) |
| 716 | .unwrap() |
| 717 | } |
| 718 | |
| 719 | #[test] |
| 720 | fn recorded_stream_matches_exhaustive_verifier_boundaries_and_filters() { |