Branch Coverage

blib/lib/Text/Amuse/Compile/Templates.pm
Criterion Covered Total %
branch 32 40 80.0


line true false branch
115 0 319 if @args % 2
121 583 55 if (exists $params{$k})
125 0 319 if %params
128 2 317 if (exists $self->{'ttdir'} and defined $self->{'ttdir'})
130 2 0 if (-d $self->{'ttdir'}) { }
132 0 2 unless opendir my $dh, $dir
133 8 4 if -f catfile($dir, $_)
146 0 8 unless open my $fh, "<:encoding(utf-8)", $target
188 0 1096 unless $name
190 11 1085 if (my $format_id = $self->format_id)
192 2 9 if (my $sub = $tts->{$try})
196 30 1064 if (my $sub = $tts->{$name})
204 6 116 if (my $ref = $self->ttref("html"))
315 5 185 if (my $ref = $self->ttref("css"))
656 5 12 if (my $ref = $self->ttref("bare_html"))
674 0 56 if (my $ref = $self->ttref("title_page_html"))
716 5 386 if (my $ref = $self->ttref("minimal_html"))
744 6 247 if (my $ref = $self->ttref("latex"))
1232 0 9 if (my $ref = $self->ttref("slides"))
1286 5 53 if (my $ref = $self->ttref("bare_latex"))