Branch Coverage

blib/lib/FusionInventory/Agent/Logger/File.pm
Criterion Covered Total %
branch 10 14 71.4


line true false branch
17 1 4 $params{'config'}{'logfile-maxsize'} ? :
31 1024 1029 if ($self->{'logfile_maxsize'})
33 1 1023 if ($stat and $stat->size > $self->{'logfile_maxsize'})
34 0 1 unless (open $handle, '>', $self->{'logfile'})
41 0 2052 unless ($handle or open $handle, '>>', $self->{'logfile'})
52 2053 0 if flock $handle, 6
55 0 2053 unless ($locked)