Branch Coverage

File:blib/lib/Object/Configure.pm
Coverage:84.5%

line%coveragebranch
429100TFif not defined $class or $class eq ""
441100TFif $key eq "logger"
443100TFif (ref $value eq "CODE" or &blessed($value))
448100TFif (exists $params->{'logger'} and ref $params->{'logger'} eq "ARRAY")
466100TFif ($config_file)
469100TFunless ($config_dirs or -r $config_file)
481100TFif $ancestor_config_file and $ancestor_config_file eq $config_file
48350TFif ($ancestor_config_file and -r $ancestor_config_file and not $tracked_files{$ancestor_config_file})
48650TFif -f $ancestor_config_file
491100TFif ($config_file and not $tracked_files{$config_file} and -r $config_file)
49450TFif -f $config_file
498100TFunless (scalar @config_files_to_load)
501100TFif (-r $candidate)
509100TFif (@config_files_to_load) { }
100TFelsif (my $config = 'Config::Abstraction'->new('env_prefix', "${class}__")) { }
53550TFif ($config) { }
0TFelsif ($@) { }
560100TFif ($ancestor_env_config)
58050TFif ($params->{'config_path'} and -f $params->{'config_path'})
585100TFexists $params->{'croak_on_error'} ? :
586100TFexists $params->{'carp_on_warn'} ? :
592100TFdefined $array_logger ? :
595100TFunless (exists $params->{'_config_file'})
596100TFif defined $config_file
598100TFunless (exists $params->{'_config_files'})
599100TFif @config_files_to_load
604100TFif %stashed_values
698100TFif $params->{'_config_file'}
810100TFif %_config_watchers
812100TFif (my $pid = fork) { }
50TFelsif (defined $pid) { }
885100TFif (my $pid = $_config_watchers{'pid'})
88650TFif ($pid =~ /\A[0-9]+\z/ and $pid > 0)
895100TFif ($kid == 0 and &Object::Configure::time() < $deadline)
90050TFif ($kid == 0)
986100TFif (my $obj = $$obj_ref)
99350TFif ($@)
99950TFunless @$objects
1097100TFunless defined $class and defined $obj
1108100TFunless (defined $_original_usr1_handler)
111150TFif $^O eq $OS_WINDOWS
1115100TFif $_config_watchers{'callback'}
1117100TFif (ref $_original_usr1_handler eq 'CODE') { }
50TFelsif ($_original_usr1_handler eq $SIG_DEFAULT or $_original_usr1_handler eq $SIG_IGNORE) { }
1188100TFif (defined $_original_usr1_handler)
118950TFunless $^O eq $OS_WINDOWS
1312100TFunless defined $spec
1315100TFif not ref $spec and $spec eq $LOGGER_NULL
1318100TFif &blessed($spec) and $spec->isa("Log::Abstraction")
1321100TFif (ref $spec eq "ARRAY")
1325100TFif (ref $spec eq "HASH")
134850TFunless grep {$_ eq "UNIVERSAL";} @mro
1379100TFif -r $pattern and -f $pattern
1382100TFif ($config_dirs and ref $config_dirs eq "ARRAY")
1392100TFif -r $pattern and -f $pattern
141850TFif (-f $config_file) { }
1422100TFif (not $stored_stat or $current_stat->mtime > $stored_stat->mtime)
1432100TFif ($changes_detected and $^O ne $OS_WINDOWS)
143350TFif (my $parent_pid = getppid)
144950TFunless &blessed($obj)
1457100TFif ($obj->{'_config_files'} and ref $obj->{'_config_files'} eq 'ARRAY' and @{$obj->{'_config_files'};}) { }
1463100TFunless $config_file and -f $config_file
147050TFif ($config)
147950TFif $key =~ /^_/
1481100TFif ($key eq 'logger') { }
148550TFif (ref $val or defined $val and $val ne $LOGGER_NULL) { }
1495100TFif $obj->can("_on_config_reload")
1498100TFif $obj->{'logger'} and $obj->{'logger'}->can("info")
1527100TFunless ref $base eq "HASH"
1528100TFunless ref $overlay eq "HASH"
1533100TFif (ref $overlay->{$key} eq 'HASH' and ref $result->{$key} eq 'HASH') { }