Branch Coverage

blib/lib/App/Math/Tutor/Role/Unit.pm
Criterion Covered Total %
branch 23 34 67.6


line true false branch
133 63 0 unless defined $min
134 18 45 unless defined $factor
161 0 18 if 1 != scalar @base
178 0 168 if $lb == $ub and $lb == scalar @{$$unit_type{'spectrum'};}
179 27 32 if $lb == $ub and $ub == 0 and scalar @{$$unit_type{'spectrum'};} > 0
180 3 165 if $lb == $ub and $ub < $$unit_type{'base'}
181 29 139 if $lb == $ub
189 105 294 unless defined $max
195 0 168 unless @rc
224 90 18 unless defined $ut
225 0 108 $self->has_unit_length ? :
231 0 168 if $ub - $lb >= $length
232 168 0 unless defined $deviation
233 0 0 if defined $lo and abs $lb - $lo > $deviation
234 0 0 if defined $uo and abs $lb - $uo > $deviation
247 54 114 if $bounds[0] > $bounds[1]
251 108 60 unless @result