Branch Coverage

blib/lib/PBib/Config.pm
Criterion Covered Total %
branch 39 58 67.2


line true false branch
133 0 2 if (defined $mode)
143 10 4 if ($attributes{$attr}) { }
208 0 47 if ($dir)
214 2 45 if ($file)
243 0 44 unless (@path)
249 42 4 if (defined $$options{$opt}) { }
251 2 40 if (@path)
253 0 2 if (ref $options ne 'HASH')
261 0 4 if (@path)
268 4 40 if (defined $new_val)
329 2 0 if ($$self{'default'})
338 0 2 if ($$self{'site'})
344 0 2 if ($$self{'user'})
350 0 2 if ($$self{'env'})
356 0 2 if ($$self{'argv'})
460 0 2 unless $filename
462 0 2 $path ? :
464 0 2 if $self->beVerbose
469 6 62 if (-r $file)
481 4 8 unless (-r $filename)
482 0 4 if $self->beVerbose
485 0 8 if $self->beVerbose
489 8 0 if $path
502 8 0 unless $options{'loaded_config_files'}
548 0 98 unless ref $conf eq 'HASH'
552 283 383 if (defined $rv)
553 35 248 if (ref $v eq 'HASH' and ref $rv eq 'HASH')
573 0 8 if (ref $val eq 'ARRAY' and @$val and ref $$val[0] eq 'HASH')
578 54 404 if (ref $val eq 'HASH')