Branch Coverage

blib/lib/Data/Dimensions.pm
Criterion Covered Total %
branch 28 44 63.6


line true false branch
14 2 2 if ($_ eq 'extended')
17 2 2 if ($_ eq '&units')
30 0 19 if (@_)
51 3 26 if defined $value
62 0 0 if ($] < 5.014)
76 0 0 if (not ref $val && UNIVERSAL::isa($val, 'Data::Dimensions')) { }
80 0 0 unless $self->same_units($val)
91 13 10 if (@_) { }
101 8 10 if (@_) { }
117 3 18 if $$ou{$_} != $$tu{$_}
127 0 0 if $$ou{$_}
158 1 6 if ($r) { }
2 4 elsif (not ref $two && UNIVERSAL::isa($two, 'Data::Dimensions')) { }
215 0 3 if ($r) { }
0 3 elsif (not ref $two && UNIVERSAL::isa($two, 'Data::Dimensions')) { }
222 1 2 unless $one->same_units($two)
232 0 7 if ($r) { }
6 1 elsif (not ref $two && UNIVERSAL::isa($two, 'Data::Dimensions')) { }
239 0 1 unless $one->same_units($two)
273 0 2 unless $two->no_units
289 0 0 unless $one->no_units
302 3 1 UNIVERSAL::isa($handler, 'CODE') ? :