Branch Coverage

blib/lib/Log/Log4perl/Layout/ColoredPatternLayout.pm
Criterion Covered Total %
branch 41 58 70.6


line true false branch
37 6 18 ref $_[0] eq 'HASH' ? :
38 22 2 @_ ? :
50 0 24 exists $options->{'undef_column_value'} ? :
58 2 22 if (exists $options->{'ColorMap'}{'value'})
63 2 22 if (exists $options->{'ConversionPattern'}{'value'})
67 0 24 if (exists $options->{'message_chomp_before_newline'}) { }
110 0 33 unless defined $caller_level
116 6 27 if $self->{'message_chompable'}
122 0 22 if ($self->{'info_needed'}{'L'} or $self->{'info_needed'}{'F'} or $self->{'info_needed'}{'C'} or $self->{'info_needed'}{'l'} or $self->{'info_needed'}{'M'} or $self->{'info_needed'}{'T'} or 0)
139 0 11 unless (defined $bitmask)
145 0 0 unless defined $_
153 0 6 if ($self->{'info_needed'}{'M'} or $self->{'info_needed'}{'l'} or 0)
168 4 5 if (defined $subroutine and $subroutine eq '(eval)')
175 2 3 unless $subroutine
183 0 33 if $self->{'info_needed'}{'x'}
193 9 24 if ($self->{'info_needed'}{'r'} or $self->{'info_needed'}{'R'})
194 0 2 unless ($TIME_HIRES_AVAILABLE_WARNED++ or $self->{'timer'}->hires_available)
201 9 24 if ($self->{'info_needed'}{'r'})
204 8 25 if ($self->{'info_needed'}{'R'})
209 0 33 if ($self->{'info_needed'}{'T'})
231 0 88 if (exists $self->{'USER_DEFINED_CSPECS'}{$op}) { }
88 0 elsif (exists $info{$op}) { }
232 0 0 unless $self->{'info_needed'}{$op}
239 37 51 if ($curlies) { }
244 0 51 if ($op eq 'd')
253 1 87 unless defined $result
260 0 33 if (scalar @results == 1 and not defined $results[0])
307 12 76 if ($color)
308 4 8 if (ref $color eq ref sub { } )