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 10 42 if defined $new
54 3 22 ref $_[-1] eq 'ARRAY' ? :
56 0 25 unless $arg
57 0 25 if exists $Singletons{$arg}
61 9 16 if ('Clustericious::Config'->_testing)
72 0 25 if $@
79 4 21 if (ref $arg eq 'SCALAR') { }
4 17 elsif (ref $arg eq 'HASH') { }
0 17 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 13 4 if defined $ENV{'CLUSTERICIOUS_CONF_DIR'}
103 8 9 unless $we_are_testing_this_module or 'Clustericious::Config'->_testing
107 15 2 if ($dir) { }
113 0 15 if ref($rendered) =~ /Exception/
114 13 2 $rendered =~ /^---/ ? :
115 0 15 if ($ENV{'CL_CONF_TRACE'})
122 13 2 $type eq 'yaml' ? :
123 0 15 if $@
125 2 0 unless $dir
134 22 3 if ($class eq 'Clustericious::Config')
135 5 17 if (ref $arg)
140 9 13 if $$class_suffix{$arg}
143 0 22 if $@
152 0 25 if ($$conf_data{'hypnotoad'} and not ref $$conf_data{'hypnotoad'}{'listen'})
182 4 48 if ($default_exists and not exists $$self{$called})
185 3 49 if $called =~ /^_/ or not exists $$self{$called}
190 3 49 if (ref $value eq 'HASH')
196 1 81 if $default_exists and not exists $$self{$called}
197 3 79 unless exists $$self{$called}
200 0 71 'Clustericious::Config::Password'->is_sentinel($value) ? :
6 71 defined $obj ? :
1 77 wantarray && ref $value eq 'ARRAY' ? :
1 78 wantarray && ref $value eq 'HASH' ? :