Branch Coverage

blib/lib/Log/Fine/Formatter/Template.pm
Criterion Covered Total %
branch 39 60 65.0


line true false branch
168 21 0 defined $_[0] ? :
208 0 15 unless defined $self->{'template'} and $self->{'template'} =~ /\w/
213 15 0 unless defined $self->{'use_effective_id'} and $self->{'use_effective_id'} =~ /\d/
217 2 13 if defined $self->{'custom_placeholders'}
240 14 0 unless defined $self->{'_fileName'} and $self->{'_fileName'} =~ /\w/
256 0 14 if (defined $self->{'_groupName'} and $self->{'_groupName'} =~ /\w/) { }
14 0 elsif ($self->{'use_effective_id'}) { }
259 0 14 if ($^O =~ /MSWin32/) { }
262 0 0 defined $ENV{'EGID'} ? :
269 0 0 if ($^O =~ /MSWin32/) { }
272 0 0 defined $ENV{'GID'} ? :
295 14 0 unless defined $self->{'_fullHost'} and $self->{'_fullHost'} =~ /\w/
312 0 14 if (defined $self->{'_placeHolders'} and ref $self->{'_placeHolders'} eq 'HASH') { }
320 6 8 if $tmpl =~ /%%TIME%%/i
326 1 13 if $tmpl =~ /%%PACKAGE%%/i
329 1 13 if $tmpl =~ /%%FILENAME%%/i
332 2 12 if $tmpl =~ /%%LINENO%%/i
338 2 12 if $tmpl =~ /%%SUBROUT%%/i
341 1 13 if $tmpl =~ /%%HOSTSHORT%%/i
344 1 13 if $tmpl =~ /%%HOSTLONG%%/i
347 1 13 if $tmpl =~ /%%USER%%/i
350 1 13 if $tmpl =~ /%%GROUP%%/i
353 1 13 if (defined $self->{'custom_placeholders'})
356 1 0 if $tmpl =~ /%%$placeholder%%/i
380 0 2 unless ref $self->{'custom_placeholders'} eq 'HASH'
387 0 3 unless ref $self->{'custom_placeholders'}{$placeholder} eq 'CODE'
390 1 2 if (defined $$holders{lc $placeholder}) { }
415 0 14 if (defined $self->{'_userName'} and $self->{'_userName'} =~ /\w/) { }
14 0 elsif ($self->{'use_effective_id'}) { }
420 0 14 $^O eq 'MSWin32' ? :