Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
121 0 3 0 defined $_[0] and ref $_[0] eq 'GLOB' || ref $_[0] eq 'CODE' || ref($_[0])->can('print')
134 0 0 14 @_ == 1 and defined $_[0]
0 14 0 @_ == 1 and defined $_[0] and !ref($_[0]) || ref $_[0] eq 'CODE'
146 0 0 13 defined $x and ref $x eq 'CODE'
160 0 1 0 @_ == 1 and !defined($_[0]) || ref $_[0] eq 'CODE'
179 26 0 0 @_ == 1 and ref $_[0] eq 'HASH'
208 0 0 17 @_ == 1 && ref $_[0] eq 'HASH'
214 23 11 0 defined $cfg->{$_} and $self->log_level($cfg->{$_})
217 51 0 0 defined $cfg->{$_} and $self->log_level_min($cfg->{$_})
220 51 0 0 defined $cfg->{$_} and $self->log_level_max($cfg->{$_})
228 34 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]);}) }
236 29 5 0 defined $cfg->{$_} and do { my $v = $cfg->{$_}; $self->process_argv(%{ref $v eq 'HASH' ? $v : $argv_profile{$v} || croak(qq[Unknown "$_" value $v]);}) }
246 50 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->{$_}]));}) }
252 34 0 0 defined $cfg->{$_} and $self->output($cfg->{$_})
269 0 0 11 defined $offset and $offset =~ /^-?\d+$/
0 0 11 defined $offset and $offset =~ /^-?\d+$/ and @_ == 2
282 7 0 4 defined $spec{'log_level'} and defined $ENV{$spec{'log_level'}}
285 4 0 7 defined $spec{'debug'} and defined $ENV{$spec{'debug'}}
337 69 12 0 $array->[$i] =~ /^-[^-=][^-=]+$/ and $spec{'bundle'}
344 5 0 4 $spec{'remove'} and $len != @un_bundled

or 2 conditions

line l !l condition
240 1 0 ref $cfg->{$_} || ''
471 68 24 $_cached_adapters{&refaddr($_[0])} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
121 2 1 0 ref $_[0] eq 'GLOB' || ref $_[0] eq 'CODE' || ref($_[0])->can('print')
134 13 1 0 !ref($_[0]) || ref $_[0] eq 'CODE'
160 0 1 0 !defined($_[0]) || ref $_[0] eq 'CODE'
226 0 0 0 $env_profile{$v} || croak(qq[Unknown "$_" value $v])
234 4 0 0 $argv_profile{$v} || croak(qq[Unknown "$_" value $v])
385 3 35 0 $self->{'_writer_cache'} ||= $self->_build_writer_cache