Branch Coverage

blib/lib/Log/Agent/Channel/File.pm
Criterion Covered Total %
branch 29 54 53.7


line true false branch
74 0 210 unless (ref $vset)
85 27 6 unless ref $self->stampfmt eq 'CODE'
89 0 33 $^O =~ /^dos|win/i ? :
92 0 33 if ($self->rotate)
96 0 0 if ($@)
134 33 36 unless $fd
135 0 69 unless ref $fd
139 69 0 unless $self->{'no_prefixing'}
142 69 0 unless $self->{'no_newline'}
176 2 31 if ($filename =~ /^\s*[>|]/ and $self->magic_open) { }
180 0 2 if defined $self->fileperm
184 2 0 if CORE::open $h, $filename
199 31 0 if ($self->share)
204 1 30 if (defined $eobj)
206 0 0 if defined $erot and defined $rotate and not $erot->is_same($rotate)
213 30 1 unless (defined $fobj)
214 0 30 if (defined $rotate) { }
218 12 18 defined $self->fileperm ? :
30 0 if sysopen $h, $filename, 1089, defined $self->fileperm ? $self->fileperm : 438
229 31 0 if defined $fobj and $self->share
241 0 33 unless (defined $fobj)
244 0 0 unless $self->warned->{$filename}++
254 0 33 if (defined $note)
255 0 0 if $self->no_newline
268 0 19 unless ref $fd
271 0 19 unless ($self->share)
282 19 0 if $pool->remove($self->filename)