Condition Coverage

blib/lib/Net/CIDR/Lookup.pm
Criterion Covered Total %
condition 29 41 70.7


and 3 conditions

line !l l&&!r l&&r condition
98 0 0 4 $_ <= 255 and $_ >= 0
137 0 0 31 defined $net and defined $bits
366 26 19 3 $checksub and defined $node->[$bit]
45 1 2 $checksub and defined $node->[$bit] and 'Net::CIDR::Lookup' eq ref $node->[$bit]
374 48 0 0 not @node_stack and defined $$node[$bit ^ 1]
48 0 0 not @node_stack and defined $$node[$bit ^ 1] and $$node[$bit ^ 1] eq $val
380 0 23 29 defined $node and defined $$node->[0]
23 9 20 defined $node and defined $$node->[0] and defined $$node->[1]
32 16 4 defined $node and defined $$node->[0] and defined $$node->[1] and $$node->[0] eq $$node->[1]
487 21 16 128 $ix2 <= $ix1 and not $start & 1 << $ix2
37 1 127 $ix2 <= $ix1 and not $start & 1 << $ix2 and $end & 1 << $ix2

or 2 conditions

line l !l condition
358 0 554 $node->[$bit] ||= bless([], 'Net::CIDR::Lookup')

or 3 conditions

line l !l&&r !l&&!r condition
162 0 0 4 defined $crud or not defined $end
484 37 1 153 $xor & 1 << $ix1 or -1 == $ix1