Condition Coverage

blib/lib/Net/Works/Network.pm
Criterion Covered Total %
condition 23 30 76.6


and 3 conditions

line !l l&&!r l&&r condition
113 148 597 45 $version == 6 and inet_pton(2, $address)
260 10 10 26 $first_integer >= $self->first_as_integer && $last_integer <= $self->last_as_integer
440 267 0 19068 ($v & 1) == 0 and $prefix_length > 0
267 59 19009 ($v & 1) == 0 and $prefix_length > 0 and ($ip | $reverse_mask) <= $maxip
466 0 0 30 &blessed($self) and &blessed($other)
0 0 30 &blessed($self) and &blessed($other) and eval { do { $other->isa('Net::Works::Network') if $self->isa('Net::Works::Network') } }

or 3 conditions

line l !l&&r !l&&!r condition
137 340 70 0 $version ||= ref $integer ? 6 : 4
290 3 0 9 $self->version == 4 && $self->prefix_length == 32 || $self->version == 6 && $self->prefix_length == 128
298 1 1 3 shift() || &any(sub { /:/; } , $first_ip, $last_ip)
468 24 4 2 $self->first <=> $other->first || $self->prefix_length <=> $other->prefix_length