Branch Coverage

blib/lib/Tie/LogFile.pm
Criterion Covered Total %
branch 18 30 60.0


line true false branch
34 0 10 if (@_ % 2 != 0)
41 0 10 if ($options{'format'} and not $options{'format'} =~ /%m/)
46 0 10 if ($options{'mode'} and not $options{'mode'} =~ /^>>?$/)
62 0 10 unless open $self, $$$self{'mode'}, $filename
64 1 9 if ($$$self{'autoflush'})
102 46 0 $formats{$1} ? :
104 20 2 if ($$$self{'force_newline'})
105 20 0 unless $line =~ /\n$/
114 1 0 if (defined $af)
127 1 9 if ($$$self{'tformat'})
141 0 0 if (@_)
158 2 1 unless ($loaded)
159 0 2 unless load_date_mod()
167 0 2 if (eval 'require Date::Format')
173 2 0 if (eval 'require POSIX')