Condition Coverage

blib/lib/Basset/Object.pm
Criterion Covered Total %
condition 85 118 72.0


and 3 conditions

line !l l&&!r l&&r condition
279 4 5 10 defined $val and not $val =~ /$regex/
724 50 6 0 ref $val eq 'HASH' and ref $attr eq 'HASH'
738 897 1096 100 ref $attr eq 'HASH' and $class ne $internalpkg
1672 1 2 359 $self->can($errormethod) and $self->can($codemethod)
1692 1 0 135 defined $center and $center->can('postNotification')
1702 141 0 5 $self->exceptions and defined $self->$codemethod
1716 6 185 16 defined $err and ref $err eq 'ARRAY'
2030 0 0 7 defined $self->errortranslator and defined $self->error
0 4 3 defined $self->errortranslator and defined $self->error and exists $self->errortranslator->{$self->error}
0 0 4 defined $self->errortranslator and defined $error
0 3 1 defined $self->errortranslator and defined $error and exists $self->errortranslator->{$error}
0 0 3 defined $self->errortranslator and defined $self->errcode
0 2 1 defined $self->errortranslator and defined $self->errcode and exists $self->errortranslator->{$self->errcode}
0 1 1 defined $self->errortranslator and exists $self->errortranslator->{'*'}
2241 0 0 4 defined $center and $center->can('postNotification')
3717 548 40 118 $local and defined $$conf{$self}
4095 13 2 2 ref $value eq 'ARRAY' and $$deref{$method}
15 0 0 ref $value eq 'HASH' and $$deref{$method}

or 2 conditions

line l !l condition
916 7 1 shift() || 'instance'
992 23 5 shift() || 'instance'
995 5 11 $class->_instance_attributes->{$attribute} || $class->_class_attributes->{$attribute} || 0
998 4 4 $class->_instance_attributes->{$attribute} || 0
1001 2 1 $class->_class_attributes->{$attribute} || 0
1130 2 10 shift() || 'no_op'
1689 10 136 shift() || 0
1690 0 146 shift() || 0
2589 146 44 shift() || 0
3116 1 1 $self->errcode || 'BO-03'
3533 1 0 $self->pkg_for_type($type) || die($self->errstring)
3623 35 103 shift() || {}
3712 158 548 shift() || 0
4076 1 17 $args{'continue'} || 0
4105 1 0 $self->errcode || 'BO-06'
4108 2 0 $self->errcode || 'BO-06'
4353 2 0 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
240 42 193 0 shift() || $attribute
1166 8 1 1 $class->can($wrapper) or ref $wrapper eq 'CODE'
1701 146 0 0 $self->can('exceptions') or $throw_anyway
2592 1 181 8 $inlined{$newclass} or $INC{$class->module_for_class($newclass)}
2953 80 0 3 $self->init(@_) || $class->error($self->errvals)
3116 414 0 2 defined $return or not defined $value
3179 309 0 2814 ref $_[0] || $_[0]
3250 4 0 0 $typeClass->new(%init) || $class->error($typeClass->errvals)
3328 1 4 0 shift() || $self
3622 0 138 0 ref $class || $class