blib/lib/Net/IPAM/Block/Private.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 20 | 22 | 90.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
106 | 0 | 0 | 4 | &Scalar::Util::blessed($ip) and $ip->isa("Net::IPAM::IP") |
127 | 1 | 3 | 4 | $_[0]{'base'}->cmp($_[1]) <= 0 && $_[0]{'last'}->cmp($_[1]) >= 0 |
136 | 82 | 101 | 64 | $_[0]{'base'}->cmp($_[1]{'base'}) <= 0 && $_[0]{'last'}->cmp($_[1]{'last'}) >= 0 |
180 | 25 | 143 | 335 | $is_all_zeros && $is_all_ones |
line | l | !l | condition |
---|---|---|---|
39 | 225 | 2 | "Net::IPAM::IP"->new($prefix_str) // (return) |
43 | 6 | 1 | "Net::IPAM::IP"->new($suffix_str) // (return) |
72 | 80 | 1 | "Net::IPAM::IP"->new($base_str) // (return) |
73 | 78 | 2 | "Net::IPAM::IP"->new($last_str) // (return) |
93 | 63 | 2 | "Net::IPAM::IP"->new($addr) // (return) |