line |
true |
false |
branch |
22
|
0 |
16 |
if $Physics::Unit::Scalar::debug |
26
|
1 |
15 |
if (ref $proto) { } |
35
|
0 |
15 |
if $Physics::Unit::Scalar::debug |
36
|
14 |
1 |
if (defined $def) |
43
|
3 |
12 |
if ($class eq 'Physics::Unit::Scalar') { } |
61
|
1 |
11 |
if (not defined $def or $def eq '') { } |
|
2 |
9 |
elsif ($def =~ /^$Physics::Unit::number_re$/io) { } |
75
|
1 |
8 |
if 'Physics::Unit::' . $u->type ne $class |
98
|
1 |
0 |
if (ref $proto) { } |
108
|
10 |
1 |
unless @_ |
119
|
0 |
1 |
unless ref $self and ref $u |
127
|
0 |
13 |
if @_ |
136
|
0 |
1 |
unless ref $self and ref $other |
138
|
0 |
1 |
if ref $self ne ref $other |
148
|
0 |
0 |
unless ref $self |
159
|
0 |
0 |
unless ref $self and ref $other |
161
|
0 |
0 |
if ref $self ne ref $other |
173
|
0 |
2 |
unless ref $self and ref $other |
192
|
0 |
2 |
unless ref $self |
196
|
0 |
2 |
unless $self->{'value'} |
213
|
0 |
2 |
unless ref $self and ref $other |
223
|
3 |
2 |
if (ref $n) { } |
233
|
0 |
30 |
if $Physics::Unit::Scalar::debug |
250
|
12 |
0 |
if (ref $proto) { } |
276
|
6 |
3 |
if ($type) { } |
277
|
0 |
6 |
if $type eq 'prefix' |