Branch Coverage

blib/lib/Math/Calc/Units/Convert/Base.pm
Criterion Covered Total %
branch 45 52 86.5


line true false branch
38 200 51 unless /s$/
39 27 24 if /^(.*[^e])s$/
40 5 19 if /^(.*(ch|sh))es$/
41 2 17 if /^(.*[aeiou][^aeiou]e)s$/
62 0 26 if keys %$u != keys %$v
64 12 15 unless exists $$v{$name}
65 0 15 if $$v{$name} != $power
76 214 451 if $from eq $to
80 189 262 unless ($w)
84 185 266 unless $w
87 99 167 if ($$w[1] ne $to) { }
89 0 99 unless defined $submult
104 210 13 if ($canon) { }
106 127 83 unless defined $mult
136 0 13 if $mag < 0
137 0 13 if $mag == 0
144 12 74 if $unit eq $start
145 55 31 unless $started
147 12 19 if $mag / $orig < $THRESHOLD
150 2 17 if $n == 0
183 142 140 if ($val >= $$range[0])
184 39 103 if (not defined $$range[1] or $val <= $$range[1])
193 240 3 if (defined $$range[1]) { }
214 726 0 if $x
226 162 134 defined $specific ? :
250 66 0 if ($power == 1) { }