Condition Coverage

blib/lib/Net/CIDR/Lookup.pm
Criterion Covered Total %
condition 28 41 68.2


and 3 conditions

line !l l&&!r l&&r condition
102 0 0 0 $_ <= 255 and $_ >= 0
141 0 0 30 defined $net and defined $bits
370 25 19 3 $checksub and defined $node->[$bit]
44 1 2 $checksub and defined $node->[$bit] and 'Net::CIDR::Lookup' eq ref $node->[$bit]
378 47 0 0 not @node_stack and defined $$node[$bit ^ 1]
47 0 0 not @node_stack and defined $$node[$bit ^ 1] and $$node[$bit ^ 1] eq $val
384 0 22 29 defined $node and defined $$node->[0]
22 9 20 defined $node and defined $$node->[0] and defined $$node->[1]
31 16 4 defined $node and defined $$node->[0] and defined $$node->[1] and $$node->[0] eq $$node->[1]
491 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
362 0 530 $node->[$bit] ||= bless([], 'Net::CIDR::Lookup')

or 3 conditions

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