Branch Coverage

blib/lib/App/Math/Tutor/Numbers.pm
Criterion Covered Total %
branch 35 140 25.0


line true false branch
61 0 14 unless $_[0]->num
62 0 14 if $_[0]->denum == 1
63 0 14 if $_[1] and $_[0]->num > $_[0]->denum
69 4 0 if $_[0]->sign < 0 and blessed($_[0]->num) || blessed($_[0]->denum)
78 2 14 if blessed $n
79 0 16 if blessed $d
86 0 8 if $swapped
88 8 0 unless blessed $other
103 0 0 $a > $b ? :
120 0 0 $s < 0 ? :
140 0 0 $a > $b ? :
189 0 0 if $swapped
191 0 0 unless blessed $other
224 0 0 unless $fact
225 0 0 if 0 == $exp
226 0 0 if 1 == $exp and 1 != $fact
227 0 0 if 1 == $exp
228 0 0 if 1 == $fact
235 0 0 blessed $fact ? :
278 6 6 if ($i == 0)
280 6 0 blessed($terms[$i]) ? :
284 0 4 blessed($terms[$i]) ? :
4 2 if $op eq '+'
285 2 0 blessed($terms[$i]) ? :
2 4 if $op eq '-'
294 2 4 if $swapped
296 4 0 unless blessed $other
311 2 0 blessed $first ? :
351 0 0 blessed($terms[$i]) ? :
352 0 0 if ($i == 0)
358 0 0 if $op eq '*'
359 0 0 if $op eq '/'
368 0 0 if $swapped
370 0 0 unless blessed $other
382 0 0 unless @{$_[0]->values;}
386 0 0 blessed $term ? :
397 0 0 blessed $term ? :
448 0 2 unless $b
449 0 2 unless defined $f
450 0 2 unless $f
451 0 2 if $e == 1
452 0 2 unless blessed $e
456 0 2 $e->denum != 2 ? :
0 0 blessed $b ? :
0 2 $e->num != 1 ? :
2 0 if $m and ($e <=> int $e) != 0 and 0 != $bn
464 0 0 blessed $b ? :
2 0 if 0 != $bn
467 0 2 unless defined $x
468 0 0 $x && !($x =~ /^\\/) ? :
0 2 if 1 != $f
470 0 2 unless $x
477 0 0 unless defined $f
478 0 0 unless blessed $e
480 0 0 if blessed $en
481 0 0 if blessed $ed
482 0 0 if blessed $b
483 0 0 if blessed $f
490 0 0 if $swapped
492 0 0 unless blessed $other
508 0 2 if defined $f and $f < 0
515 0 0 blessed $f ? :
619 0 0 unless $num
637 0 0 unless $num
639 0 0 $i <= $base ? :
642 0 0 if (defined $_[1])
645 0 0 $_[1] <= $base ? :
659 0 0 if $swapped
661 0 0 unless blessed $other
663 0 0 if 0 != ($rc = $other->begin <=> $self->begin)