Branch Coverage

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


line true false branch
115 0 315 if @args % 2
121 575 55 if (exists $params{$k})
125 0 315 if %params
128 2 313 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 1092 unless $name
190 11 1081 if (my $format_id = $self->format_id)
192 2 9 if (my $sub = $tts->{$try})
196 30 1060 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 243 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"))