(rule: &mut NetworkPolicyRule)
| 797 | } |
| 798 | |
| 799 | fn normalize_rule(rule: &mut NetworkPolicyRule) { |
| 800 | for endpoint in &mut rule.endpoints { |
| 801 | normalize_endpoint(endpoint); |
| 802 | } |
| 803 | dedup_binaries(&mut rule.binaries); |
| 804 | } |
| 805 | |
| 806 | fn normalize_endpoint(endpoint: &mut NetworkEndpoint) { |
| 807 | let mut ports = canonical_ports(endpoint); |
no test coverage detected