Branch Coverage

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

line%coveragebranch
27650TFif (exists $params->{'logger'} and ref $params->{'logger'} eq "ARRAY")
294100TFif ($config_file)
296100TFunless ($config_dirs or -r $config_file)
310100TFif ($ancestor_config_file and $ancestor_config_file eq $config_file)
31550TFif ($ancestor_config_file and -r $ancestor_config_file and not $tracked_files{$ancestor_config_file})
32350TFif (-f $ancestor_config_file)
33150TFif ($config_file and not $tracked_files{$config_file} and -r $config_file)
33850TFif (-f $config_file)
346100TFif (@config_files_to_load)
357100TFif (@config_files_to_load) { }
100TFelsif (my $config = 'Config::Abstraction'->new('env_prefix', "${class}__")) { }
37450TFif ($config) { }
0TFelsif ($@) { }
40550TFif ($ancestor_env_config)
42750TFif ($params->{'config_path'} and -f $params->{'config_path'})
43250TFexists $params->{'croak_on_error'} ? :
43350TFexists $params->{'carp_on_warn'} ? :
436100TFif (my $logger = $params->{'logger'}) { }
50TFelsif ($array) { }
43750TFif ($params->{'logger'} ne "NULL")
438100TFif (ref $logger eq 'HASH') { }
50TFelsif (not &blessed($logger) && $logger->isa('Log::Abstraction')) { }
439100TFif ($logger->{'syslog'}) { }
46850TFif ($array and not $params->{'logger'}{'array'})
473100TFif defined $config_file
474100TFif @config_files_to_load
49150TFif ($base_config_file =~ m[^(.*/)([^/]+?)(\.[^.]+)?$]) { }
511100TFif ($config_dirs and ref $config_dirs eq "ARRAY")
527100TFif (-r $pattern and -f $pattern)
55050TFif $seen->{$class}++
56050TFif $parent eq "Exporter"
56150TFif $parent eq "DynaLoader"
56250TFif $parent eq "UNIVERSAL"
57650TFunless ref $base eq "HASH"
57750TFunless ref $overlay eq "HASH"
582100TFif (ref $overlay->{$key} eq 'HASH' and ref $result->{$key} eq 'HASH') { }
610100TFif ($params->{'_config_file'})
63750TFif %_config_watchers
640100TFif (my $pid = fork) { }
50TFelsif (defined $pid) { }
663100TFif (my $pid = $_config_watchers{'pid'})
688100TFif (my $obj = $$obj_ref)
69350TFif ($@)
70050TFunless @$objects
72150TFif (-f $config_file) { }
726100TFif (not $stored_stat or $current_stat->mtime > $stored_stat->mtime)
737100TFif ($changes_detected)
73850TFif ($^O ne "MSWin32")
74150TFif (my $parent_pid = getppid)
75350TFunless &blessed($obj)
761100TFunless $config_file and -f $config_file
76950TFif ($config)
78050TFif $key =~ /^_/
782100TFif ($key =~ /^logger/ and $new_params->{$key} ne 'NULL') { }
79150TFif ($obj->can("_on_config_reload"))
79650TFif ($obj->{'logger'} and $obj->{'logger'}->can("info"))
80750TFif (ref $logger_config eq 'HASH') { }
8110TFif ($logger_config->{'syslog'}) { }
849100TFif (not defined $_original_usr1_handler)
85350TFif $^O eq "MSWin32"
858100TFif ($_config_watchers{'callback'})
86350TFif (ref $_original_usr1_handler eq 'CODE') { }
0TFelsif ($_original_usr1_handler eq 'DEFAULT') { }
0TFelsif ($_original_usr1_handler eq 'IGNORE') { }
0TFelsif ($_original_usr1_handler ne 'DEFAULT' and $_original_usr1_handler ne 'IGNORE') { }
891100TFif (defined $_original_usr1_handler)
89250TFif $^O ne "MSWin32"