Condition Coverage

blib/lib/Lab/Instrument.pm
Criterion Covered Total %
condition 35 83 42.1


and 3 conditions

line !l l&&!r l&&r condition
174 18 0 10 $class eq $package and $class ne "Lab::Instrument"
223 4 5 29 $class->can("set_" . $cache_param) and exists &$set_methode
259 75 0 0 defined $__PACKAGE__::SELF->{'config'}{'fast_cache'} and $__PACKAGE__::SELF->{'config'}{'fast_cache'} > 0
273 0 0 75 $__PACKAGE__::SELF->can($get_sub) and not $__PACKAGE__::SELF->{'config'}{'no_cache'}
286 4 0 34 $class->can("get_" . $cache_param) and exists &$get_methode
317 106 188 0 not defined $read_mode and exists $self->{'config'}{'default_read_mode'}
349 188 6 100 defined $read_mode and $read_mode eq "cache"
194 2 98 defined $read_mode and $read_mode eq "cache" and defined $self->device_cache($parameter)
8 0 98 defined $read_mode and $read_mode eq "cache" and defined $self->device_cache($parameter) and not $self->{'config'}{'no_cache'}
432 16 0 0 defined $self->config($ckey) and $self->can($subname)
500 0 0 0 $self->device_cache and $self->connection
725 0 0 0 $code != 0 and $code != -1
778 61 22 0 scalar(@_) % 2 == 0 && ref $_[1] ne 'HASH'
835 18 0 0 $read_mode eq "request" and not defined $self->{'requestID'}
18 0 0 defined $self->{'requestID'} and $self->{'requestID'} eq $requestID
883 32 152 0 scalar(@_) % 2 == 0 && ref $_[1] ne 'HASH'
907 0 0 0 scalar @_ > 1 and scalar(@_) % 2 == 0
950 0 0 6 scalar @_ > 1 and scalar(@_) % 2 == 0
998 0 0 0 scalar @_ > 1 and scalar(@_) % 2 == 0

or 2 conditions

line l !l condition
560 10 0 shift() || undef

or 3 conditions

line l !l&&r !l&&!r condition
59 0 10 0 ref $proto || $proto
245 0 0 75 defined $self->{'requestID'} or $self->connection->is_blocked
367 0 0 196 not defined $retval or ref $retval eq "Hook::LexWrap::Cleanup"
457 0 0 0 defined $self->device_cache->{$ckey} || defined $self->config->{$ckey}
563 4 6 0 ref $connection || $connection
568 2 8 0 $connection->isa("Lab::Connection::DEBUG") or $connection->isa("Lab::Connection::Mock")
732 0 0 0 @errors or $code == -1
1202 0 0 0 not defined $value or ref $value ne ""