Branch Coverage

blib/lib/App/Math/Tutor/Cmd/Unit/Cmd/Add.pm
Criterion Covered Total %
branch 22 22 100.0


line true false branch
60 15 15 $i ? :
61 7 23 if $op eq '-' and $a < $b
66 8 22 $a->begin < $b->begin ? :
67 4 26 $a->end > $b->end ? :
74 73 14 if $i >= $a->begin and $i <= $a->end
75 65 22 if $i >= $b->begin and $i <= $b->end
76 1 86 unless scalar @cps
79 9 77 if ($dp < 0) { }
4 93 elsif (defined $a->type->{'spectrum'}[$i]{'max'} and $dp > $a->type->{'spectrum'}[$i]{'max'}) { }
87 3 1 if @dparts
88 1 3 unless @dparts