example_tester

Function assert_filtered_logs_eq_to_golden

Source
pub async fn assert_filtered_logs_eq_to_golden<'a>(
    log_reader: &'a ArchiveReader,
    comp: &'a dyn Component,
    filter_by_log: impl FnMut(&&Data<Logs>) -> bool + 'a + Copy,
)
Expand description

Same as |assert_logs_eq_to_golden|, except an additional filtering function may be used to trim arbitrary logs. This is particularly useful if one or more languages produces logs that we don’t want to include in the final, common output to be compared across language implementations.