Condition Coverage

blib/lib/Log/Any/Adapter/Daemontools/Config.pm
Criterion Covered Total %
condition 40 82 48.7


and 3 conditions

line !l l&&!r l&&r condition
122 0 1 2 defined $_[0] and ref $_[0] eq 'GLOB' || ref $_[0] eq 'CODE' || ref($_[0])->can('print')
135 0 0 14 @_ == 1 and defined $_[0]
0 0 14 @_ == 1 and defined $_[0] and !ref($_[0]) || ref $_[0] eq 'CODE'
147 0 0 13 defined $x and ref $x eq 'CODE'
161 0 0 1 @_ == 1 and !defined($_[0]) || ref $_[0] eq 'CODE'
180 27 0 0 @_ == 1 and ref $_[0] eq 'HASH'
216 0 0 18 @_ == 1 && ref $_[0] eq 'HASH'
222 24 12 0 defined $cfg->{$_} and $self->log_level($cfg->{$_})
225 54 0 0 defined $cfg->{$_} and $self->log_level_min($cfg->{$_})
228 54 0 0 defined $cfg->{$_} and $self->log_level_max($cfg->{$_})
236 36 0 0 defined $cfg->{$_} and do { my $v = $cfg->{$_}; $self->process_env(%{ref $v eq 'HASH' ? $v : $env_profile{$v} || croak(qq[Unknown "$_" value $v]);}) }
244 30 6 0 defined $cfg->{$_} and do { my $v = $cfg->{$_}; $self->process_argv(%{ref $v eq 'HASH' ? $v : $argv_profile{$v} || croak(qq[Unknown "$_" value $v]);}) }
254 53 1 0 defined $cfg->{$_} and do { my $rt = ref $cfg->{$_} || ''; $self->install_signal_handlers(%{$rt eq 'HASH' ? $$cfg{$_} : ($rt eq 'ARRAY' ? {'verbose', $cfg->{$_}[0], 'quiet', $cfg->{$_}[1]} : croak(qq[Unknown "$_" value $cfg->{$_}]));}) }
260 36 0 0 defined $cfg->{$_} and $self->output($cfg->{$_})
277 0 0 12 defined $offset and $offset =~ /^-?\d+$/
0 0 12 defined $offset and $offset =~ /^-?\d+$/ and @_ == 2
290 7 0 4 defined $spec{'log_level'} and defined $ENV{$spec{'log_level'}}
293 4 0 7 defined $spec{'debug'} and defined $ENV{$spec{'debug'}}
343 76 3 10 $array->[$i] =~ /^-[^-=][^-=]+$/ and $spec->{'bundle'}
350 5 0 5 $spec->{'remove'} and $len != @un_bundled

or 2 conditions

line l !l condition
248 1 0 ref $cfg->{$_} || ''
474 70 25 $_cached_adapters{&refaddr($_[0])} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
122 2 1 0 ref $_[0] eq 'GLOB' || ref $_[0] eq 'CODE' || ref($_[0])->can('print')
135 13 1 0 !ref($_[0]) || ref $_[0] eq 'CODE'
161 0 1 0 !defined($_[0]) || ref $_[0] eq 'CODE'
234 0 0 0 $env_profile{$v} || croak(qq[Unknown "$_" value $v])
242 5 0 0 $argv_profile{$v} || croak(qq[Unknown "$_" value $v])
388 3 36 0 $self->{'_writer_cache'} ||= $self->_build_writer_cache