Branch Coverage

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

line%coveragebranch
552100TFif not defined $class or $class eq ""
561100TFunless $class =~ /\A[A-Za-z_]\w*(?:::[A-Za-z_]\w*)*\z/
573100TFif $key eq "logger"
575100TFif (ref $value eq "CODE" or &blessed($value))
580100TFif (exists $params->{'logger'} and ref $params->{'logger'} eq "ARRAY")
596100TFif (defined $config_file and $config_file =~ /$RE_PATH_TRAVERSAL/)
608100TFif ($config_file)
611100TFunless ($config_dirs or -r $config_file)
623100TFif $ancestor_config_file and $ancestor_config_file eq $config_file
625100TFif ($ancestor_config_file and -r $ancestor_config_file and not $tracked_files{$ancestor_config_file})
62850TFif -f $ancestor_config_file
634100TFif (not $tracked_files{$config_file} and -r $config_file)
637100TFif -f $config_file
641100TFunless (scalar @config_files_to_load)
644100TFif (-r $candidate)
652100TFif (@config_files_to_load) { }
100TFelsif (my $config = 'Config::Abstraction'->new('env_prefix', "${class}__")) { }
678100TFif ($config) { }
100TFelsif ($@) { }
703100TFif ($ancestor_env_config)
730100TFif ($params->{'config_path'})
73350TFif $params->{'config_path'} =~ /$RE_PATH_TRAVERSAL/
73550TFif -f $params->{'config_path'}
739100TFexists $params->{'croak_on_error'} ? :
740100TFexists $params->{'carp_on_warn'} ? :
746100TFdefined $array_logger ? :
749100TFunless (exists $params->{'_config_file'})
750100TFif defined $config_file
752100TFunless (exists $params->{'_config_files'})
753100TFif @config_files_to_load
758100TFif %stashed_values
865100TFif $params->{'_config_file'}
982100TFunless $interval > 0
985100TFif %_config_watchers
987100TFif (my $pid = fork) { }
50TFelsif (defined $pid) { }
1046100TFif (my $pid = $_config_watchers{'pid'})
1054100TFif ($pid =~ /\A[0-9]+\z/ and $pid > 1 and $pid != $$)
1063100TFif ($kid == 0 and &Object::Configure::time() < $deadline)
106850TFif ($kid == 0)
113350TFif (my $obj = $$obj_ref)
1140100TFif ($@)
1146100TFunless @$objects
1248100TFunless defined $class and defined $obj
1255100TFunless &blessed($obj)
1266100TFunless (defined $_original_usr1_handler)
126950TFif $^O eq $OS_WINDOWS
1273100TFif $_config_watchers{'callback'}
1275100TFif (ref $_original_usr1_handler eq 'CODE') { }
100TFelsif ($_original_usr1_handler eq $SIG_DEFAULT or $_original_usr1_handler eq $SIG_IGNORE) { }
1330100TFif (defined $_original_usr1_handler)
133150TFunless $^O eq $OS_WINDOWS
1428100TFunless defined $spec
1431100TFif not ref $spec and $spec eq $LOGGER_NULL
1434100TFif &blessed($spec) and $spec->isa("Log::Abstraction")
1437100TFif (ref $spec eq "ARRAY")
1441100TFif (ref $spec eq "HASH")
1464100TFif $_chain_cache{$class}
1472100TFunless &any(sub {         $_ eq "UNIVERSAL"; } , @mro)
1495100TF$config_dirs ? :
1497100TFif exists $_find_cache{$cache_key}
1520100TFif (-r $pattern and -f $pattern)
1526100TFif ($config_dirs and ref $config_dirs eq "ARRAY")
1538100TFif (-r $pattern and -f $pattern)
156650TFunless $interval > 0
157750TFif (-f $config_file) { }
1581100TFif (not $stored_stat or $current_stat->mtime > $stored_stat->mtime)
1591100TFif ($changes_detected and $^O ne $OS_WINDOWS)
159250TFif (my $parent_pid = getppid)
1608100TFunless &blessed($obj)
1616100TFif ($obj->{'_config_files'} and ref $obj->{'_config_files'} eq 'ARRAY' and @{$obj->{'_config_files'};}) { }
1627100TFif ($config_file and $config_file =~ /$RE_PATH_TRAVERSAL/)
1633100TFunless $config_file and -f $config_file
164050TFif ($config)
1649100TFif $key =~ /^_/
1651100TFif ($key eq 'logger') { }
1658100TFif (not defined $val or not ref $val and $val eq $LOGGER_NULL) { }
1668100TFif $obj->can("_on_config_reload")
1671100TFif $obj->{'logger'} and $obj->{'logger'}->can("info")
1700100TFunless ref $base eq "HASH"
1701100TFunless ref $overlay eq "HASH"
1706100TFif (ref $overlay->{$key} eq 'HASH' and ref $result->{$key} eq 'HASH') { }