(actual: &Option<String>, filter: &Option<String>)
| 41 | } |
| 42 | |
| 43 | fn matches_optional_wildcard(actual: &Option<String>, filter: &Option<String>) -> bool { |
| 44 | match filter { |
| 45 | Some(pattern) => match actual { |
| 46 | Some(value) => matches_wildcard(value, pattern), |
| 47 | None => false, |
| 48 | }, |
| 49 | None => true, |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | fn matches_optional_exact<T: PartialEq>(actual: &Option<T>, filter: &Option<T>) -> bool { |
| 54 | match filter { |
no test coverage detected