Condition Coverage

blib/lib/Math/Formula/Type.pm
Criterion Covered Total %
condition 86 108 79.6


and 3 conditions

line !l l&&!r l&&r condition
67 1 0 33 $op eq "." and $right->isa("MF::NAME")
110 4 2 4 $self->value && $r->value
159 0 14 14 ref $self eq 'MF::STRING' && $to eq 'MF::REGEXP'
0 3 11 ref $self eq 'MF::STRING' && $to eq 'MF::PATTERN'
255 3 0 2 $op eq "*" and $right->isa("MF::DURATION")
482 10 1 1 $op eq "+" and $right->isa("MF::TIME")
492 9 1 1 $op eq "-" and $right->isa("MF::DATE")
498 0 2 0 $r and $r->token =~ /T.*[1-9]/u
841 0 1 1 $in_range && $regexp[-1] eq '['
889 8 0 7 $op eq "#" and $right->isa("MF::NAME")
897 0 0 8 $op eq "." and $right->isa("MF::NAME")

or 2 conditions

line l !l condition
149 106 0 $_[1] // ""
364 13 24 $8 // "+0000"
365 16 21 $7 // 0
453 8 3 $4 // "+0000"
513 2 0 $ltz // ""
2 0 $rtz // ""
553 10 13 $4 // 0

or 3 conditions

line l !l&&r !l&&!r condition
44 368 393 29 $self->[1] //= $self->_value($self->[0], @_)
110 4 1 2 $self->value || $r->value
168 6 6 29 $op eq "like" or $op eq "unlike"
187 0 2 10 $right->isa('MF::PATTERN') || $right->isa('MF::REGEXP')
234 3 1 54 $op eq "and" or $op eq "or"
4 2 52 $op eq "and" or $op eq "or" or $op eq "xor"
240 40 7 5 $right->isa("MF::INTEGER") or $right->isa("MF::FLOAT")
313 0 0 17 $op eq "and" or $op eq "or"
0 0 17 $op eq "and" or $op eq "or" or $op eq "xor"
319 8 9 0 $right->isa("MF::FLOAT") or $right->isa("MF::INTEGER")
387 1 2 18 $op eq "+" or $op eq "-"
427 6 4 0 $dt_attrs{$_[1]} or $MF::DATE::date_attrs{$_[1]}
496 1 1 8 $op eq "+" or $op eq "-"
513 2 1 1 $ld ne $rd or ($ltz // "") eq ($rtz // "")
580 2 6 5 $op eq "+" or $op eq "-"
638 5 0 1 $to->isa("MF::INTEGER") or $to->isa("MF::FLOAT")
665 1 2 2 $op eq "+" or $op eq "-"
712 2 2 12 $op eq "+" or $op eq "-"
852 1 11 0 $_[0][2] //= &_to_regexp(scalar $_[0]->value)

xor 4 conditions

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