Condition Coverage

blib/lib/Math/Logic.pm
Criterion Covered Total %
condition 65 96 67.7


and 3 conditions

line !l l&&!r l&&r condition
167 1 504 0 defined $$self{'-value'} and $$self{'-value'} =~ /^(?:\d+|-1)$/o
171 35 0 39 $$self{'-value'} && $$self{'-value'} != $Math::Logic::UNDEF
244 15 0 14 $value && $value != $Math::Logic::UNDEF
291 2 460 0 ref $comp and $comp->can('degree')
0 460 0 ref $comp and $comp->can('degree') and $comp->can('propagate')
297 8 0 449 $self->degree == $comp->degree && $self->propagate == $comp->propagate
311 0 0 0 ref $comp and $comp->can('degree')
0 0 0 ref $comp and $comp->can('degree') and $comp->can('propagate')
345 0 4 4 $self->degree == 100 and $full
369 4 3 2 $self->value && $comp->value
373 4 2 2 $self->value == $Math::Logic::TRUE and $comp->value == $Math::Logic::TRUE
387 12 4 2 $self->value == $Math::Logic::TRUE and $comp->value == $Math::Logic::TRUE
442 4 2 2 $self->value == $Math::Logic::FALSE and $comp->value == $Math::Logic::FALSE

or 2 conditions

line l !l condition
324 15 18 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
110 0 15 0 ref $self || $self
126 10 0 5 $arg[0] || $DEF_VALUE
15 0 0 $arg[1] || $DEF_DEGREE
1 0 14 $arg[2] || $DEF_PROPAGATE
136 451 54 0 ref $self || $self
288 459 3 0 ref $self || $self
291 0 2 0 ref $comp || $comp
308 0 0 0 ref $self || $self
311 0 0 0 ref $comp || $comp
325 15 0 18 $full eq '1' or $full eq '-full'
373 6 4 8 $self->value == $Math::Logic::UNDEF or $comp->value == $Math::Logic::UNDEF
387 6 4 6 $self->value == $Math::Logic::FALSE or $comp->value == $Math::Logic::FALSE
424 4 2 2 $self->value || $comp->value
428 6 4 8 $self->value == $Math::Logic::UNDEF or $comp->value == $Math::Logic::UNDEF
4 2 2 $self->value == $Math::Logic::TRUE or $comp->value == $Math::Logic::TRUE
442 6 4 8 $self->value == $Math::Logic::TRUE or $comp->value == $Math::Logic::TRUE
483 12 8 16 $self->value == $Math::Logic::UNDEF or $comp->value == $Math::Logic::UNDEF

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
479 2 2 2 2 $self->value xor $comp->value