Branch Coverage

blib/lib/DBR/Util/Logger.pm
Criterion Covered Total %
branch 15 38 39.4


line true false branch
60 17 0 if ($in{-'logLevel'}) { }
63 0 0 if $in{-'noLog'}
64 0 0 if $in{-'bDebug'}
76 0 17 unless defined $levmap{$level}
81 0 17 if ($in{-'user_id'})
102 0 1586 unless $$self{'loglevel'}
107 0 1586 unless $$self{'levmap'}{$type}
108 0 1586 unless $$self{'levmap'}{$type} <= $$self{'loglevel'}
112 17 1569 unless (defined $fh)
114 0 17 if ($$self{'user_id'}) { }
130 0 17 unless $self->_prepdir($dirpath)
131 0 17 unless sysopen $fh, $logpath, 1089, 438
150 17 0 if -d $dir
154 0 0 defined $path ? :
155 0 0 if not length $path or -d $path
156 0 0 if (-e _)
160 0 0 unless mkdir $path, 509
185 16 0 if (defined $$self{'HANDLE'})
206 8072 6202 if (length $time[$i] < 2)