Condition Coverage

blib/lib/Net/Interface.pm
Criterion Covered Total %
condition 21 42 50.0


and 3 conditions

line !l l&&!r l&&r condition
909 136 23 4 ($c = $ipv6) =~ s/::/x/ and $c =~ /(?:x|:):/
913 142 11 2 $c < 7 and not $ipv6 =~ /::/

or 2 conditions

line l !l condition
616 0 0 $i || 0
750 0 0 eval { do { &af_inet6 } } || 0
985 411 141 $hex[$_] || 0

or 3 conditions

line l !l&&r !l&&!r condition
118 0 3 0 ref $proto || $proto
627 0 0 0 not exists $if->{'args'}{$fam} or $idx < 0
0 0 0 not exists $if->{'args'}{$fam} or $idx < 0 or $idx > $#{$$if{'args'}{$fam}{'addr'};}
870 4 0 0 not $overange or $_[0] =~ /[^0-9\.]/
904 0 0 1 $2 > 255 or $3 > 255
0 0 1 $2 > 255 or $3 > 255 or $4 > 255
0 0 1 $2 > 255 or $3 > 255 or $4 > 255 or $5 > 255
909 6 0 163 $ipv6 =~ /[^:0-9a-fA-F]/ or ($c = $ipv6) =~ s/::/x/ and $c =~ /(?:x|:):/
4 4 155 $ipv6 =~ /[^:0-9a-fA-F]/ or ($c = $ipv6) =~ s/::/x/ and $c =~ /(?:x|:):/ or $ipv6 =~ /[0-9a-fA-F]{5,}/
916 4 4 4 $ipv6 =~ s/^::/:/ or $ipv6 =~ s/::$/:/