Branch Coverage

blib/lib/Net/IPAM/Block/Private.pm
Criterion Covered Total %
branch 29 32 90.6


line true false branch
42 7 219 if (index($suffix_str, '.') >= 0) { }
45 1 5 unless exists $valid_masks4{$mask_n}
49 136 83 if $prefix->version == 6
51 2 217 unless $suffix_str =~ /^\d+$/
52 4 213 if $suffix_str > $bits
77 2 76 if $version != $last_ip->version
80 2 74 if $base_ip->cmp($last_ip) > 0
106 0 4 unless &Scalar::Util::blessed($ip) and $ip->isa("Net::IPAM::IP")
133 2 247 if $_[0]->cmp($_[1]) == 0
141 0 679 unless my $n = shift()
149 3919 571 if ($byte == 0)
200 4 6 if $self->version == 6
213 144 134 if ($is_cidr)
247 102 124 if $self->version == 6
280 516 1354 if ($bits == 32)
292 0 2 if $base_ip->version == 6