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 75 if $version != $last_ip->version
80 2 73 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 430 unless my $n = shift()
149 1886 323 if ($byte == 0)
176 16 7 if ($self->is_cidr)
189 1 6 if $self->version == 6
222 149 99 if ($self->version == 4)
283 90 140 if ($bits == 32)
295 0 2 if $base_ip->version == 6