Branch Coverage

blib/lib/Math/Calc/Units/Compute.pm
Criterion Covered Total %
branch 30 32 93.7


line true false branch
31 3 2 if (equivalent($$u[1], $$v[1])) { }
1 1 elsif (is_unit($$u[1], 'timestamp') and is_unit($$v[1], 'sec')) { }
0 1 elsif (is_unit($$u[1], 'sec') and is_unit($$v[1], 'timestamp')) { }
47 1 5 if (is_unit($$u[1], 'timestamp') and is_unit($$v[1], 'timestamp')) { }
3 2 elsif (equivalent($$u[1], $$v[1])) { }
1 2 elsif (is_unit($$u[1], 'timestamp') and is_unit($$v[1], 'sec')) { }
70 1 6 if keys %{$$v[1];}
72 5 1 if (keys %{$$u[1];} != 0)
74 1 4 if abs $power - int($power) > 1e-20
86 2 32 if $$u{$unit} == 0
98 0 4 if $power == 0
122 130 72 /\w/ ? :
125 202 /\d/ ? :
7 327 /\w\(/ ? :
140 334 108 if @$types
153 97 8 $canonicalize ? :