Condition Coverage

blib/lib/Net/CIDR.pm
Criterion Covered Total %
condition 31 138 22.4


and 3 conditions

line !l l&&!r l&&r condition
302 0 0 22 $pfix >= 0 and $pfix <= ($#ips + 1) * 8
0 0 22 $pfix >= 0 and $pfix <= ($#ips + 1) * 8 and $pfix =~ /^[0-9]+$/
445 0 0 372 $_ >= 0 and $_ <= 255
0 0 372 $_ >= 0 and $_ <= 255 and $_ =~ /^[0-9]+$/
552 0 0 0 defined $a_isIPv6 and defined $n_isIPv6
0 0 0 defined $a_isIPv6 and defined $n_isIPv6 and $a_isIPv6 != $n_isIPv6
557 0 0 0 $previousNMoctet != 255 and $octet != 0
609 0 0 0 $isipv6_1 and $isipv6_2
630 0 0 0 1 == @r and 1 == @c
0 0 0 1 == @r and 1 == @c and not wantarray
646 0 0 0 $a >= 0 and $a <= 255
0 0 0 $a >= 0 and $a <= 255 and $a =~ /^[0-9]+$/
647 0 0 0 $b >= 0 and $b <= 255
0 0 0 $b >= 0 and $b <= 255 and $b =~ /^[0-9]+$/
0 0 0 $b >= 0 and $b <= 255 and $b =~ /^[0-9]+$/ and $b >= $a
747 0 0 0 $a >= 0 and $a <= 255
0 0 0 $a >= 0 and $a <= 255 and $a =~ /^[0-9]+$/
748 0 0 0 $b >= 0 and $b <= 255
0 0 0 $b >= 0 and $b <= 255 and $b =~ /^[0-9]+$/
0 0 0 $b >= 0 and $b <= 255 and $b =~ /^[0-9]+$/ and $b >= $a
764 0 0 0 $i and $n + $a > $b
791 0 0 3 $a >= 0 and $a <= 255
0 0 3 $a >= 0 and $a <= 255 and $a =~ /^[0-9]+$/
792 0 0 3 $b >= 0 and $b <= 8
0 0 3 $b >= 0 and $b <= 8 and $b =~ /^[0-9]+$/
825 0 24 163 $#a >= 0 and $a[0] == $b[0]
885 0 0 3 $pfix >= 0 and $pfix <= ($#ips + 1) * 8
0 0 3 $pfix >= 0 and $pfix <= ($#ips + 1) * 8 and $pfix =~ /^[0-9]+$/
901 1 0 0 $pfix == 0 and $bitsleft == 0
1030 0 0 0 _ipcmp($a[$i], $lo) <= 0 and _ipcmp($hi, $b[$i]) <= 0
1052 0 0 0 defined $lo && defined $hi
1234 0 0 8 $suffix =~ /^\d+$/ and $suffix eq '0' || $suffix =~ /^[123456789]/
1289 1 5 0 $#o < 7 and not $v =~ /::/

or 3 conditions

line l !l&&r !l&&!r condition
607 0 0 0 $isipv6_1 or $isipv6_2
899 0 1 2 $#ips < 0 or $bitsleft == 0
1052 0 0 0 not defined $lo && defined $hi or _ipcmp($lo, $hi) > 0
1234 0 8 0 $suffix eq '0' || $suffix =~ /^[123456789]/
1238 3 3 6 $v =~ /^([0-9\.]+)$/ or $v =~ /^::ffff:([0-9\.]+)$/
6 0 6 $v =~ /^([0-9\.]+)$/ or $v =~ /^::ffff:([0-9\.]+)$/ or $v =~ /^:([0-9\.]+)$/
1243 0 0 6 $n =~ /^\./ or $n =~ /\.$/
0 0 6 $n =~ /^\./ or $n =~ /\.$/ or $n =~ /\.\./
1259 0 0 24 $_ < 0 or $_ > 255
1284 0 0 6 $v =~ /:::/ or $v =~ /^:[^:]/
0 0 6 $v =~ /:::/ or $v =~ /^:[^:]/ or $v =~ /[^:]:$/
0 0 6 $v =~ /:::/ or $v =~ /^:[^:]/ or $v =~ /[^:]:$/ or $v =~ /::.*::/
1289 0 0 6 $#o >= 8 or $#o < 7 and not $v =~ /::/