Condition Coverage

blib/lib/Math/Formula/Type.pm
Criterion Covered Total %
condition 83 105 79.0


and 3 conditions

line !l l&&!r l&&r condition
67 1 0 29 $op eq "." and $right->isa("MF::NAME")
109 4 2 4 $self->value && $r->value
152 0 11 5 ref $self eq 'MF::STRING' && $to eq 'MF::REGEXP'
0 0 11 ref $self eq 'MF::STRING' && $to eq 'MF::PATTERN'
238 3 0 1 $op eq "*" and $right->isa("MF::DURATION")
462 10 1 1 $op eq "+" and $right->isa("MF::TIME")
472 9 1 1 $op eq "-" and $right->isa("MF::DATE")
478 0 2 0 $r and $r->token =~ /T.*[1-9]/u
745 0 1 1 $in_range && $regexp[-1] eq '['
793 8 0 7 $op eq "#" and $right->isa("MF::NAME")
801 0 0 8 $op eq "." and $right->isa("MF::NAME")

or 2 conditions

line l !l condition
142 88 0 $_[1] // ""
344 13 24 $8 // "+0000"
345 16 21 $7 // 0
433 8 3 $4 // "+0000"
493 2 0 $ltz // ""
2 0 $rtz // ""
533 10 13 $4 // 0

or 3 conditions

line l !l&&r !l&&!r condition
44 327 339 28 $self->[1] //= $self->_value($self->[0], @_)
109 4 1 2 $self->value || $r->value
161 2 2 41 $op eq "=~" or $op eq "!~"
6 6 29 $op eq "like" or $op eq "unlike"
173 0 2 10 $right->isa('MF::PATTERN') || $right->isa('MF::REGEXP')
220 3 1 48 $op eq "and" or $op eq "or"
4 2 46 $op eq "and" or $op eq "or" or $op eq "xor"
223 35 7 4 $right->isa("MF::INTEGER") or $right->isa("MF::FLOAT")
296 0 0 16 $op eq "and" or $op eq "or"
0 0 16 $op eq "and" or $op eq "or" or $op eq "xor"
299 8 8 0 $right->isa("MF::FLOAT") or $right->isa("MF::INTEGER")
367 1 2 18 $op eq "+" or $op eq "-"
407 6 4 0 $dt_attrs{$_[1]} or $MF::DATE::date_attrs{$_[1]}
476 1 1 8 $op eq "+" or $op eq "-"
493 2 1 1 $ld ne $rd or ($ltz // "") eq ($rtz // "")
560 2 6 5 $op eq "+" or $op eq "-"
624 1 1 5 $op eq "+" or $op eq "-"
756 1 11 0 $_[0][2] //= &_to_regexp(scalar $_[0]->value)

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
109 2 2 1 1 $self->value xor $r->value