Branch Coverage

lib/Concierge/Setup.pm
Criterion Covered Total %
branch 8 52 15.3


line true false branch
30 1 12 unless defined $storage_dir
34 0 12 if (not $storage_dir or $storage_dir eq "." or $storage_dir eq "./")
39 1 11 unless (-d $storage_dir)
41 0 1 if $@
66 0 12 unless ($users_setup->{'success'})
89 0 12 unless open $fh, ">", $concierge_conf_file and print $fh $json and close $fh
115 0 0 unless ref $config eq "HASH"
119 0 0 unless $config->{'storage'} and $config->{'storage'}{'base_dir'}
123 0 0 if (not $base_dir or $base_dir eq "." or $base_dir eq "./")
135 0 0 if -d $dir
138 0 0 if $@
166 0 0 if exists $config->{'users'}{'include_standard_fields'}
169 0 0 if exists $config->{'users'}{'app_fields'}
172 0 0 if exists $config->{'users'}{'field_overrides'}
176 0 0 unless ($users_setup->{'success'})
198 0 0 unless open $fh, ">", $concierge_conf_file and print $fh $json and close $fh
224 0 0 unless $config->{'storage'} and $config->{'storage'}{'base_dir'}
227 0 0 unless $config->{'auth'} and $config->{'auth'}{'file'}
230 0 0 unless $config->{'sessions'} and $config->{'sessions'}{'backend'}
233 0 0 unless $config->{'users'} and $config->{'users'}{'backend'}
236 0 0 if ($config->{'sessions'}{'backend'})
238 0 0 unless $backend =~ /^(database|file)$/u
242 0 0 if ($config->{'users'}{'backend'})
244 0 0 unless $backend =~ /^(database|yaml|file)$/u
249 0 0 @errors ? :
0 0 @errors ? :