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
289 0 0 22 $pfix >= 0 and $pfix <= ($#ips + 1) * 8
0 0 22 $pfix >= 0 and $pfix <= ($#ips + 1) * 8 and $pfix =~ /^[0-9]+$/
432 0 0 372 $_ >= 0 and $_ <= 255
0 0 372 $_ >= 0 and $_ <= 255 and $_ =~ /^[0-9]+$/
539 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
544 0 0 0 $previousNMoctet != 255 and $octet != 0
596 0 0 0 $isipv6_1 and $isipv6_2
617 0 0 0 1 == @r and 1 == @c
0 0 0 1 == @r and 1 == @c and not wantarray
633 0 0 0 $a >= 0 and $a <= 255
0 0 0 $a >= 0 and $a <= 255 and $a =~ /^[0-9]+$/
634 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
734 0 0 0 $a >= 0 and $a <= 255
0 0 0 $a >= 0 and $a <= 255 and $a =~ /^[0-9]+$/
735 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
751 0 0 0 $i and $n + $a > $b
778 0 0 3 $a >= 0 and $a <= 255
0 0 3 $a >= 0 and $a <= 255 and $a =~ /^[0-9]+$/
779 0 0 3 $b >= 0 and $b <= 8
0 0 3 $b >= 0 and $b <= 8 and $b =~ /^[0-9]+$/
812 0 24 163 $#a >= 0 and $a[0] == $b[0]
872 0 0 3 $pfix >= 0 and $pfix <= ($#ips + 1) * 8
0 0 3 $pfix >= 0 and $pfix <= ($#ips + 1) * 8 and $pfix =~ /^[0-9]+$/
888 1 0 0 $pfix == 0 and $bitsleft == 0
1017 0 0 0 _ipcmp($a[$i], $lo) <= 0 and _ipcmp($hi, $b[$i]) <= 0
1039 0 0 0 defined $lo && defined $hi
1221 0 0 8 $suffix =~ /^\d+$/ and $suffix eq '0' || $suffix =~ /^[123456789]/
1276 1 5 0 $#o < 7 and not $v =~ /::/

or 3 conditions

line l !l&&r !l&&!r condition
594 0 0 0 $isipv6_1 or $isipv6_2
886 0 1 2 $#ips < 0 or $bitsleft == 0
1039 0 0 0 not defined $lo && defined $hi or _ipcmp($lo, $hi) > 0
1221 0 8 0 $suffix eq '0' || $suffix =~ /^[123456789]/
1225 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\.]+)$/
1230 0 0 6 $n =~ /^\./ or $n =~ /\.$/
0 0 6 $n =~ /^\./ or $n =~ /\.$/ or $n =~ /\.\./
1246 0 0 24 $_ < 0 or $_ > 255
1271 0 0 6 $v =~ /:::/ or $v =~ /^:[^:]/
0 0 6 $v =~ /:::/ or $v =~ /^:[^:]/ or $v =~ /[^:]:$/
0 0 6 $v =~ /:::/ or $v =~ /^:[^:]/ or $v =~ /[^:]:$/ or $v =~ /::.*::/
1276 0 0 6 $#o >= 8 or $#o < 7 and not $v =~ /::/