Branch Coverage

blib/lib/App/Math/Tutor/Numbers.pm
Criterion Covered Total %
branch 67 140 47.8


line true false branch
62 0 801 unless $_[0]->num
63 0 801 if $_[0]->denum == 1
64 40 761 if $_[1] and $_[0]->num > $_[0]->denum
73 4 0 if $_[0]->sign < 0 and blessed($_[0]->num) || blessed($_[0]->denum)
82 2 907 if blessed $n
83 0 909 if blessed $d
90 364 53 if $swapped
92 8 45 unless blessed $other
107 107 89 $a > $b ? :
124 0 0 $s < 0 ? :
144 57 37 $a > $b ? :
195 0 45 if $swapped
197 0 45 unless blessed $other
230 0 0 unless $fact
231 0 0 if 0 == $exp
232 0 0 if 1 == $exp and 1 != $fact
233 0 0 if 1 == $exp
234 0 0 if 1 == $fact
241 0 0 blessed $fact ? :
283 66 66 if ($i == 0)
285 6 60 blessed($terms[$i]) ? :
289 0 34 blessed($terms[$i]) ? :
34 32 if $op eq '+'
290 2 30 blessed($terms[$i]) ? :
32 34 if $op eq '-'
299 2 34 if $swapped
301 34 0 unless blessed $other
316 2 0 blessed $first ? :
355 0 900 blessed($terms[$i]) ? :
356 450 450 if ($i == 0)
362 450 0 if $op eq '*'
363 0 450 if $op eq '/'
372 0 270 if $swapped
374 270 0 unless blessed $other
386 0 0 unless @{$_[0]->values;}
390 0 0 blessed $term ? :
401 0 0 blessed $term ? :
450 0 2 unless $b
451 0 2 unless defined $f
452 0 2 unless $f
453 0 2 if $e == 1
454 0 2 unless blessed $e
458 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
469 0 0 blessed $b ? :
2 0 if 0 != $bn
472 0 2 unless defined $x
473 0 0 $x && !($x =~ /^\\/) ? :
0 2 if 1 != $f
475 0 2 unless $x
482 0 0 unless defined $f
483 0 0 unless blessed $e
485 0 0 if blessed $en
486 0 0 if blessed $ed
487 0 0 if blessed $b
488 0 0 if blessed $f
495 0 0 if $swapped
497 0 0 unless blessed $other
513 0 2 if defined $f and $f < 0
520 0 0 blessed $f ? :
625 4 909 unless $num
643 1 309 unless $num
645 171 138 $i <= $base ? :
648 78 62 if (defined $_[1])
651 69 9 $_[1] <= $base ? :
665 0 45 if $swapped
667 0 45 unless blessed $other
669 14 31 if 0 != ($rc = $other->begin <=> $self->begin)