Branch Coverage

blib/lib/App/dbitemplater.pm
Criterion Covered Total %
branch 0 44 0.0


line true false branch
47 0 0 if (defined $_[1])
84 0 0 if (defined $required_args->{$item} and not defined $args{$item})
87 0 0 if (defined $args{$item} and ref $args{$item} ne "")
90 0 0 if (defined $args{$item})
93 0 0 if ($item eq "header" or $item eq "row" or $item eq "footer")
95 0 0 if ($args{$item} =~ m[[\\/]]) { }
96 0 0 unless (-f $args{$item})
101 0 0 unless (-f $full_path)
147 0 0 unless $tt->process($self->{'header'}, $to_pass_to_template, \$output)
151 0 0 if ($@)
157 0 0 unless $dbh = "DBI"->connect($self->{'ds'}, $self->{'user'}, $self->{'pass'})
158 0 0 if ($@)
164 0 0 unless $sth = $dbh->prepare($self->{'query'})
165 0 0 if ($@)
169 0 0 unless $sth->execute
170 0 0 if ($@)
180 0 0 unless $tt->process($self->{'row'}, $to_pass_to_template, \$output)
184 0 0 if ($@)
195 0 0 unless $tt->process($self->{'footer'}, $to_pass_to_template, \$output)
199 0 0 if ($@)
204 0 0 if (not defined $self->{'output'}) { }
208 0 0 if ($@)