Branch Coverage

blib/lib/Clustericious/Config.pm
Criterion Covered Total %
branch 59 74 79.7


line true false branch
30 0 0 $c =~ /^\Q$p\E/ ? :
36 9 40 if defined $new
54 3 21 ref $_[-1] eq 'ARRAY' ? :
56 0 24 unless $arg
57 0 24 if exists $Singletons{$arg}
61 8 16 if ('Clustericious::Config'->_testing)
72 0 24 if $@
79 4 20 if (ref $arg eq 'SCALAR') { }
4 16 elsif (ref $arg eq 'HASH') { }
0 16 elsif ($we_are_testing_this_module and not $ENV{'CLUSTERICIOUS_CONF_DIR'} && _is_subdir($ENV{'CLUSTERICIOUS_CONF_DIR'}, Cwd::getcwd())) { }
83 0 4 if ref($rendered) =~ /Exception/
84 1 3 $rendered =~ /^---/ ? :
87 1 3 $type eq 'yaml' ? :
88 0 4 if $@
101 12 4 if defined $ENV{'CLUSTERICIOUS_CONF_DIR'}
103 8 8 unless $we_are_testing_this_module or 'Clustericious::Config'->_testing
107 14 2 if ($dir) { }
113 0 14 if ref($rendered) =~ /Exception/
114 12 2 $rendered =~ /^---/ ? :
115 0 14 if ($ENV{'CL_CONF_TRACE'})
122 12 2 $type eq 'yaml' ? :
123 0 14 if $@
125 2 0 unless $dir
134 21 3 if ($class eq 'Clustericious::Config')
135 5 16 if (ref $arg)
140 8 13 if $$class_suffix{$arg}
143 0 21 if $@
152 0 24 if ($$conf_data{'hypnotoad'} and not ref $$conf_data{'hypnotoad'}{'listen'})
182 4 44 if ($default_exists and not exists $$self{$called})
185 3 45 if $called =~ /^_/ or not exists $$self{$called}
190 3 45 if (ref $value eq 'HASH')
196 1 66 if $default_exists and not exists $$self{$called}
197 3 64 unless exists $$self{$called}
200 0 56 'Clustericious::Config::Password'->is_sentinel($value) ? :
6 56 defined $obj ? :
1 62 wantarray && ref $value eq 'ARRAY' ? :
1 63 wantarray && ref $value eq 'HASH' ? :