Condition Coverage

blib/lib/Loompa.pm
Criterion Covered Total %
condition 42 50 84.0


and 3 conditions

line !l l&&!r l&&r condition
80 8 4 1 $properties and ref $properties ne 'HASH'
140 18 0 23 $_options and $$_options{'undef_ok'}
167 5 5 9 defined $value and ref $value
10 5 4 defined $value and ref $value and ref $value ne 'CODE'
275 4 17 2 ref $prototype and not ref $prototype eq 'CODE'
21 23 0 defined $prototype and (ref $prototype and not ref $prototype eq 'CODE')
284 32 1 9 defined &{$package . "::$name";} and not $$options{'override_existing'}
337 8 0 5 $self->can('methods') and ref $self->methods
8 3 2 $self->can('methods') and ref $self->methods and ref $self->methods eq 'HASH'

or 2 conditions

line l !l condition
274 7 37 $options ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
150 0 3 42 not defined $_ or $_ eq ''
3 4 38 not defined $_ or $_ eq '' or $_ =~ /\W/
7 1 37 not defined $_ or $_ eq '' or $_ =~ /\W/ or $_ =~ /^\d/
162 0 0 23 not defined $key or $key eq ''
0 3 20 not defined $key or $key eq '' or $key =~ /\W/
3 1 19 not defined $key or $key eq '' or $key =~ /\W/ or $key =~ /^\d/
283 31 11 0 ref $proto || $proto