Condition Coverage

blib/lib/App/Math/Tutor/Cmd/VulFrac/Cmd/Add.pm
Criterion Covered Total %
condition 13 31 41.9


and 2 conditions

line l !l condition
157 19 11 $op eq '-' and $a < $b and ($b, $a) = ($a, $b)
163 0 10 ($a, $b) = ($a->_reduce, $b = $b->_reduce) and push @way, &$a_plus_b($op, $a, $b)

and 3 conditions

line !l l&&!r l&&r condition
114 0 0 0 defined $result_format{'reducable'} and $result_format{'reducable'}
116 0 0 0 defined $result_format{'keep'} and $result_format{'keep'}
117 0 0 0 defined $result_format{'keep'} and $result_format{'keep'}
157 15 4 11 $op eq '-' and $a < $b
208 26 0 4 $s->_gcd > 1 and $s = $s->_reduce
210 9 0 21 $s->num > $s->denum and $s->denum > 1

or 2 conditions

line l !l condition
114 0 0 $s->_gcd > 1 or return 0
116 0 0 $s->num <= $max_num or return 0
117 0 0 $s->denum <= $max_denum or return 0

or 3 conditions

line l !l&&r !l&&!r condition
163 5 5 20 $a->_gcd > 1 or $b->_gcd > 1