Condition Coverage

blib/lib/Physics/Unit.pm
Criterion Covered Total %
condition 27 45 60.0


and 3 conditions

line !l l&&!r l&&r condition
496 0 0 60 $name && $factor
572 2 1 1 ref $arg0 && ref $arg0 ne 'ARRAY'
635 21 1 0 defined $name and defined $prefix{$name}

or 3 conditions

line l !l&&r !l&&!r condition
474 0 0 19 ref $t or ref $names ne 'ARRAY'
496 0 0 60 not $name && $factor or ref $name
0 0 60 not $name && $factor or ref $name or ref $factor
515 0 0 440 ref $names ne 'ARRAY' or not $def
529 0 0 43 not $t or ref $t
0 0 43 not $t or ref $t or not $u
699 10 1 0 $self->name || $self->def || $self->expanded
955 0 254 635 $tok eq 'number' or $tok eq 'name'
254 4 631 $tok eq 'number' or $tok eq 'name' or $tok eq 'prefix'
258 6 625 $tok eq 'number' or $tok eq 'name' or $tok eq 'prefix' or $tok eq 'square'
10 0 625 $tok eq 'number' or $tok eq 'name' or $tok eq 'prefix' or $tok eq 'square' or $tok eq 'cubic'
1077 1 76 1178 $def =~ s/^\*\*// or $def =~ s/^\^//