Branch Coverage

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


line true false branch
32 0 1710 if @_ != 2
33 0 1710 if (ref $net)
34 0 0 if ref $net eq 'Net::IP::Identifier::Net'
38 0 0 if $net->can('src_str')
54 1710 0 if (@_ > 1)
66 58 700 if ($version eq '6')
95 4 616 if ($high <= $low)
108 377 239 if (($mask & $low) == 0 and ($mask & $high) == $mask)
115 0 239 if $idx <= 0
136 0 142 if $self->prefixlen
153 162 1548 $self->version == 6 ? :
155 162 1548 $self->version == 6 ? :
157 48 1662 if $idx < 0
165 153 1415 $self->version == 6 ? :
174 0 1303 if $self->ip eq $self->last_ip
175 1161 142 if (defined $self->prefixlen)
176 96 1065 if ($self->version eq 6)