Condition Coverage

blib/lib/Mail/SPF/Util.pm
Criterion Covered Total %
condition 17 33 51.5


and 3 conditions

line !l l&&!r l&&r condition
108 1 1 12 UNIVERSAL::isa($ipv4_address, 'NetAddr::IP') and $ipv4_address->version == 4
128 1 2 4 UNIVERSAL::isa($ipv6_address, 'NetAddr::IP') and $ipv6_address->version == 6
3 1 3 UNIVERSAL::isa($ipv6_address, 'NetAddr::IP') and $ipv6_address->version == 6 and $ipv6_address->short =~ $self->ipv4_mapped_ipv6_address_pattern
148 15 1 2 UNIVERSAL::isa($ipv6_address, 'NetAddr::IP') && $ipv6_address->version == 6 && $ipv6_address->short =~ $self->ipv4_mapped_ipv6_address_pattern
168 0 0 0 UNIVERSAL::isa($ip_address, 'NetAddr::IP') and $ip_address->version == 4 || $ip_address->version == 6
186 0 3 0 UNIVERSAL::isa($ip_address, 'NetAddr::IP') and $ip_address->version == 4 || $ip_address->version == 6
268 0 0 0 not $accept_any_domain and $match_type == 0

or 3 conditions

line l !l&&r !l&&!r condition
93 4 2 0 $hostname ||= (gethostbyname Sys::Hostname::hostname())[0]
168 0 0 0 $ip_address->version == 4 || $ip_address->version == 6
186 1 2 0 $ip_address->version == 4 || $ip_address->version == 6
310 0 0 0 not defined $best_match_type or $match_type > $best_match_type