Branch Coverage

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

line%coveragebranch
415100TFif not defined $class or $class eq ""
427100TFif $key eq "logger"
429100TFif (ref $value eq "CODE" or &blessed($value))
434100TFif (exists $params->{'logger'} and ref $params->{'logger'} eq "ARRAY")
452100TFif ($config_file)
454100TFunless ($config_dirs or -r $config_file)
468100TFif ($ancestor_config_file and $ancestor_config_file eq $config_file)
47350TFif ($ancestor_config_file and -r $ancestor_config_file and not $tracked_files{$ancestor_config_file})
48150TFif (-f $ancestor_config_file)
489100TFif ($config_file and not $tracked_files{$config_file} and -r $config_file)
49650TFif (-f $config_file)
501100TFunless (scalar @config_files_to_load)
505100TFif (-r $candidate)
517100TFif (@config_files_to_load) { }
100TFelsif (my $config = 'Config::Abstraction'->new('env_prefix', "${class}__")) { }
52050TFif (@config_files_to_load)
54650TFif ($config) { }
0TFelsif ($@) { }
576100TFif ($ancestor_env_config)
59850TFif ($params->{'config_path'} and -f $params->{'config_path'})
603100TFexists $params->{'croak_on_error'} ? :
604100TFexists $params->{'carp_on_warn'} ? :
607100TFif (my $logger = $params->{'logger'}) { }
100TFelsif ($array) { }
608100TFif (not ref $logger and $logger eq 'NULL') { }
100TFelsif (ref $logger eq 'HASH') { }
100TFelsif (not &blessed($logger) && $logger->isa('Log::Abstraction')) { }
612100TFif (exists $logger->{'syslog'}) { }
640100TFif (exists $params->{'logger'} and ref $params->{'logger'})
64150TFif ($array and not $params->{'logger'}{'array'})
64550TFif ($array and not $params->{'logger'}{'array'})
652100TFunless (exists $params->{'_config_file'})
653100TFif defined $config_file
655100TFunless (exists $params->{'_config_files'})
656100TFif @config_files_to_load
660100TFif %stashed_values
691100TFif (-r $pattern and -f $pattern)
697100TFif ($config_dirs and ref $config_dirs eq "ARRAY")
709100TFif (-r $pattern and -f $pattern)
734100TFif $seen->{$class}++
753100TFif (not @isa and $class ne "UNIVERSAL")
766100TFunless ref $base eq "HASH"
767100TFunless ref $overlay eq "HASH"
772100TFif (ref $overlay->{$key} eq 'HASH' and ref $result->{$key} eq 'HASH') { }
896100TFif ($params->{'_config_file'})
1042100TFif %_config_watchers
1045100TFif (my $pid = fork) { }
50TFelsif (defined $pid) { }
1135100TFif (my $pid = $_config_watchers{'pid'})
113750TFif ($pid =~ /\A[0-9]+\z/ and $pid > 0)
1146100TFif ($kid == 0 and &Object::Configure::time() < $deadline)
115250TFif ($kid == 0)
1263100TFif (my $obj = $$obj_ref)
126850TFif ($@)
127550TFunless @$objects
129650TFif (-f $config_file) { }
1301100TFif (not $stored_stat or $current_stat->mtime > $stored_stat->mtime)
1312100TFif ($changes_detected)
131350TFif ($^O ne "MSWin32")
131650TFif (my $parent_pid = getppid)
132850TFunless &blessed($obj)
1337100TFif ($obj->{'_config_files'} and ref $obj->{'_config_files'} eq 'ARRAY' and @{$obj->{'_config_files'};}) { }
1344100TFunless $config_file and -f $config_file
135250TFif ($config)
136350TFif $key =~ /^_/
1365100TFif ($key =~ /^logger/ and $new_params->{$key} ne 'NULL') { }
1374100TFif ($obj->can("_on_config_reload"))
1379100TFif ($obj->{'logger'} and $obj->{'logger'}->can("info"))
1392100TFif (ref $logger_config eq 'HASH') { }
1396100TFif ($logger_config->{'syslog'}) { }
1533100TFunless defined $class and defined $obj
1542100TFunless (defined $_original_usr1_handler)
154650TFif $^O eq "MSWin32"
1551100TFif ($_config_watchers{'callback'})
1556100TFif (ref $_original_usr1_handler eq 'CODE') { }
50TFelsif ($_original_usr1_handler eq 'DEFAULT') { }
50TFelsif ($_original_usr1_handler eq 'IGNORE') { }
0TFelsif ($_original_usr1_handler ne 'DEFAULT' and $_original_usr1_handler ne 'IGNORE') { }
1646100TFif (defined $_original_usr1_handler)
164750TFif $^O ne "MSWin32"