Branch Coverage

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


line true false branch
42 7 218 if (index($suffix_str, '.') >= 0) { }
45 1 5 unless exists $valid_masks4{$mask_n}
49 135 83 if $prefix->version == 6
51 2 216 unless $suffix_str =~ /^\d+$/
52 4 212 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 678 unless my $n = shift()
149 3789 570 if ($byte == 0)
200 4 6 if $self->version == 6
213 144 134 if ($is_cidr)
247 94 131 if $self->version == 6
280 537 1329 if ($bits == 32)
292 0 2 if $base_ip->version == 6