Branch Coverage

blib/lib/File/Log.pm
Criterion Covered Total %
branch 29 90 32.2


line true false branch
71 0 1 if (@_ != 0)
74 0 0 if (ref $_[0] eq 'HASH') { }
96 0 0 unless (defined $$self{'logfilename'} and $$self{'logfilename'} ne '' and defined $$self{'appname'} and $$self{'appname'} ne '')
105 1 0 unless defined $$self{'logfilename'} and $$self{'logfilename'} ne ''
119 0 1 if $$self{'_logFileOpen'}
122 0 1 if ($$self{'logfiledatetime'})
137 0 1 if ($] >= 5.008002 and defined $$self{'encode'} and $$self{'encode'} ne '') { }
147 0 1 unless ($openStatus)
161 1 0 if ($$self{'stderrredirect'})
164 0 1 unless (open STDERR, '>&LF')
178 0 1 if ($$self{'defaultfile'})
180 0 0 unless (open STDOUT, '>&LF')
196 1 0 unless $$self{'defaultfile'}
215 0 2 unless @_ > 1
218 0 2 if shift() > $$self{'debug'}
223 0 2 if ($$self{'datetimestamp'})
225 0 0 if ($$self{'dateformat'}) { }
237 0 2 if $$self{'pidstamp'}
240 0 2 if $$self{'msgprepend'}
245 0 2 if ($] >= 5.008002 and defined $$self{'encode'} and $$self{'encode'} ne '')
251 0 2 if $$self{'say'}
253 0 2 if $$self{'stdout'}
254 0 2 if $$self{'say'}
275 0 1 unless @_ >= 1
283 0 1 if ($$self{'datetimestamp'})
285 0 0 if ($$self{'dateformat'}) { }
297 0 1 if $$self{'pidstamp'}
300 0 1 if $$self{'msgprepend'}
306 0 1 if ($] >= 5.008002 and defined $$self{'encode'} and $$self{'encode'} ne '')
312 0 1 if $$self{'say'}
314 0 1 if $$self{'stdout'}
315 0 1 if $$self{'say'}
318 0 1 if $$self{'storeexptext'}
319 0 1 if $$self{'storeexptext'} and $$self{'say'}
328 0 0 if ref $$self{'_fileHandle'} eq 'GLOB' and $$self{'_logFileOpen'}
337 0 0 if (@_)
339 0 0 $_[0] ? :
350 0 0 if (@_)
352 0 0 $_[0] ? :
363 0 0 if (@_)
366 0 0 if $_[0] >= 0
377 0 0 if (@_)
392 0 0 wantarray ? :
0 0 unless $$self{'storeexptext'}
394 0 0 wantarray ? :