blib/lib/Net/Works/Network.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 27 | 77.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
111 | 142 | 591 | 45 | $version == 6 and inet_pton(2, $address) |
258 | 10 | 10 | 26 | $first_integer >= $self->first_as_integer && $last_integer <= $self->last_as_integer |
429 | 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 | |
455 | 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 |
---|---|---|---|---|
135 | 339 | 67 | 0 | $version ||= ref $integer ? 6 : 4 |
287 | 1 | 1 | 3 | shift() || any(sub { /:/; } , $first, $last) |
457 | 24 | 4 | 2 | $self->first <=> $other->first || $self->prefix_length <=> $other->prefix_length |