Branch Coverage

lib/Log/Report/Template.pm
Criterion Covered Total %
branch 36 66 54.5


line true false branch
39 0 6 unless my $self = $class->SUPER::new(@_)
46 6 0 if (ref $self eq __PACKAGE__) { }
57 4 2 ref $incl eq 'ARRAY' ? :
60 0 6 if ($handle_errors eq 'EXCEPTION') { }
0 6 elsif ($handle_errors ne 'NATIVE') { }
75 0 6 if ref $formatter eq "CODE"
80 6 0 $syntax eq 'HTML' ? :
96 8 0 unless @_
100 0 0 !defined($old) ? :
0 0 !defined($lang) ? :
0 0 if !defined($lang) ? !defined($old) : (!defined($old) ? 0 : $lang eq $old)
113 3 6 if (my $only = $args{'only_in_directory'})
115 3 0 if ref $only ne "ARRAY"
120 2 1 if grep(($_ eq $dir), @incl)
131 1 7 if ($domain = &textdomain($name, 'EXISTS')) { }
139 1 6 if (my($other) = grep(($func eq $_->function), $self->domains))
164 0 1 if $@
168 0 1 exists $args{'write_tables'} ? :
171 0 1 if (my $fns = $args{'filenames'} || $args{'filename'}) { }
172 0 0 ref $fns eq 'ARRAY' ? :
178 1 1 if -f $name and $name =~ /$match/
203 2 0 if $write
211 0 6 ref $_[-1] eq 'HASH' ? :
212 4 2 @_ ? :
213 2 4 if (@blocks == 1 and $blocks[0] =~ /\$[1-9]/)
217 0 3 unless $cols[$1 - 1]
229 1 7 if @wrap > 1
238 0 3 ref $_[-1] eq 'HASH' ? :
240 0 3 unless my $templ = shift()
264 6 0 unless $args->{'modifiers'}
280 2 0 unless builtin::blessed($_[0]) and $_[0]->isa("Template")
284 0 0 unless $_[0]{'LRT_exceptions'}
286 0 0 unless @_