blib/lib/Net/Works/Network.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 27 | 77.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
113 | 142 | 591 | 45 | $version == 6 and inet_pton(2, $address) |
260 | 10 | 10 | 26 | $first_integer >= $self->first_as_integer && $last_integer <= $self->last_as_integer |
433 | 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 | |
459 | 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') } } |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
137 | 340 | 70 | 0 | $version ||= ref $integer ? 6 : 4 |
291 | 1 | 1 | 3 | shift() || any(sub { /:/; } , $first_ip, $last_ip) |
461 | 24 | 4 | 2 | $self->first <=> $other->first || $self->prefix_length <=> $other->prefix_length |