MCPcopy Create free account
hub / github.com/PowerShell/DSC / matches_optional_wildcard

Function matches_optional_wildcard

resources/windows_firewall/src/util.rs:43–51  ·  view source on GitHub ↗
(actual: &Option<String>, filter: &Option<String>)

Source from the content-addressed store, hash-verified

41}
42
43fn 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
53fn matches_optional_exact<T: PartialEq>(actual: &Option<T>, filter: &Option<T>) -> bool {
54 match filter {

Callers 1

rule_matches_filterFunction · 0.70

Calls 1

matches_wildcardFunction · 0.70

Tested by

no test coverage detected