Branch Coverage

blib/lib/Net/IP/Identifier/Net.pm
Criterion Covered Total %
branch 24 34 70.5


line true false branch
30 0 1704 if @_ != 2
31 0 1704 if (ref $net)
32 0 0 if ref $net eq 'Net::IP::Identifier::Net'
36 0 0 if $net->can('src_str')
52 1704 0 if (@_ > 1)
64 58 694 if ($version eq '6')
93 4 611 if ($high <= $low)
106 374 237 if (($mask & $low) == 0 and ($mask & $high) == $mask)
113 0 237 if $idx <= 0
134 0 141 if $self->prefixlen
151 163 1541 $self->version == 6 ? :
153 163 1541 $self->version == 6 ? :
155 49 1655 if $idx < 0
163 154 1409 $self->version == 6 ? :
172 0 1300 if $self->ip eq $self->last_ip
173 1159 141 if (defined $self->prefixlen)
174 97 1062 if ($self->version eq 6)