message: increased code coverage for scanner
diff: @@ -758,4 +758,31 @@ mod tests {
  assert_eq!(add_url_to_list_of_scanned_urls(url, &urls), false);
  }
  +
  + #[test]
  + /// add a wildcard filter with the `size` attribute set to WILDCARD_FILTERS and ensure that
  + /// should_filter_response correctly returns true
  + fn should_filter_response_filters_wildcard_size() {
  + let mut filter = WildcardFilter::default();
  + let url = Url::parse("http://localhost").unwrap();
  + filter.size = 18;
  + let filter = Arc::new(filter);
  + add_filter_to_list_of_wildcard_filters(filter, WILDCARD_FILTERS.clone());
  + let result = should_filter_response(&18, &url);
  + assert!(result);
  +
  + }
  +
  + #[test]
  + /// add a wildcard filter with the `dynamic` attribute set to WILDCARD_FILTERS and ensure that
  + /// should_filter_response correctly returns true
  + fn should_filter_response_filters_wildcard_dynamic() {
  + let mut filter = WildcardFilter::default();
  + let url = Url::parse("http://localhost/some-path").unwrap();
  + filter.dynamic = 9;
  + let filter = Arc::new(filter);
  + add_filter_to_list_of_wildcard_filters(filter, WILDCARD_FILTERS.clone());
  + let result = should_filter_response(&18, &url);
  + assert!(result);
  + }
  }
  