Branch Coverage

lib/Log/Report/Template.pm
Criterion Covered Total %
branch 39 68 57.3


line true false branch
26 0 5 unless my $self = $class->SUPER::new(@_)
43 3 2 ref $incl eq 'ARRAY' ? :
48 0 5 if ($handle_errors eq 'EXCEPTION') { }
0 5 elsif ($handle_errors ne 'NATIVE') { }
62 0 5 if ref $formatter eq 'CODE'
67 5 0 $syntax eq 'HTML' ? :
84 3 6 if (my $only = $args{'only_in_directory'})
86 3 0 if ref $only ne 'ARRAY'
91 2 1 if grep(($_ eq $dir), @incl)
98 1 7 if &textdomain($name, 'EXISTS')
102 1 6 unless my $lexicon = delete $args{'lexicon'} || delete $args{'lexicons'}
105 0 6 if (ref $lexicon eq 'ARRAY')
106 0 0 unless @$lexicon < 2
110 0 0 unless $lexicon = $lexicon->[0]
115 0 6 unless -d $lexicon
124 1 5 if (my $other = $self->_domainByFunction($func))
153 0 1 if $@
157 0 1 exists $args{'write_tables'} ? :
160 0 1 if (my $fns = $args{'filenames'} || $args{'filename'}) { }
161 0 0 ref $fns eq 'ARRAY' ? :
167 1 1 if -f $name and $name =~ /$match/
191 2 0 if $stats
192 2 0 if $write
200 0 6 ref $_[-1] eq 'HASH' ? :
201 4 2 @_ ? :
202 2 4 if (@blocks == 1 and $blocks[0] =~ /\$[1-9]/)
206 0 3 unless $cols[$1 - 1]
217 1 7 if @wrap > 1
226 0 3 ref $_[-1] eq 'HASH' ? :
228 0 3 unless my $templ = shift()
254 5 0 unless $args->{'modifiers'}
274 4 0 unless &blessed($_[0]) and $_[0]->isa('Template')
278 0 0 unless $_[0]{'LRT_exceptions'}
280 0 0 unless @_