Branch Coverage

blib/lib/Toader/Templates.pm
Criterion Covered Total %
branch 0 140 0.0


line true false branch
51 0 0 if (defined $_[1])
89 0 0 if (defined $args{'dir'})
90 0 0 unless ($$self{'isatd'}->isaToaderDir($args{'dir'}))
101 0 0 unless (defined $args{'toader'})
108 0 0 if (ref $args{'toader'} ne 'Toader')
119 0 0 if ($$self{'toader'}->error)
130 0 0 if ($$self{'vcs'}->error)
158 0 0 unless ($self->errorblank)
182 0 0 unless ($self->errorblank)
188 0 0 unless ($returned)
221 0 0 unless ($self->errorblank)
226 0 0 unless (defined $name)
235 0 0 if ($self->error)
263 0 0 unless ($self->errorblank)
267 0 0 unless (defined $string)
284 0 0 unless (defined $rendered)
320 0 0 unless ($self->errorblank)
325 0 0 unless (defined $$self{'dir'})
334 0 0 unless ($returned)
343 0 0 unless ($returned)
355 0 0 if (-f $template)
365 0 0 if ($dir eq '/')
371 0 0 unless ($returned)
377 0 0 if (-f $template)
406 0 0 unless ($self->errorblank)
411 0 0 unless (defined $name)
421 0 0 if ($self->error)
430 0 0 if (defined $file)
432 0 0 unless (open $fh, '<', $file)
445 0 0 unless (defined $template)
472 0 0 unless ($self->errorblank)
477 0 0 unless (defined $name)
486 0 0 unless (defined $template)
510 0 0 unless ($self->errorblank)
515 0 0 unless (defined $$self{'dir'})
524 0 0 unless ($returned)
535 0 0 unless (-d $dir)
541 0 0 if (opendir $dh, $dir)
567 0 0 unless ($self->errorblank)
591 0 0 unless ($self->errorblank)
596 0 0 unless (defined $$self{'dir'})
604 0 0 unless (defined $name)
613 0 0 unless ($returned)
621 0 0 unless ($self->templateInDir($name))
633 0 0 unless (unlink $file)
641 0 0 unless ($$self{'VCSusable'})
647 0 0 if ($$self{'vcs'}->error)
654 0 0 if ($underVCS)
660 0 0 if ($$self{'vcs'}->error)
691 0 0 unless ($self->errorblank)
696 0 0 unless (defined $$self{'dir'})
704 0 0 unless (defined $name)
713 0 0 unless ($returned)
721 0 0 unless (defined $template)
733 0 0 unless (open $fh, '>', $file)
743 0 0 unless ($$self{'VCSusable'})
749 0 0 if ($$self{'vcs'}->error)
756 0 0 if ($underVCS)
762 0 0 if ($$self{'vcs'}->error)
790 0 0 unless ($self->errorblank)
795 0 0 unless (defined $$self{'dir'})
803 0 0 unless (defined $name)
812 0 0 unless ($returned)
823 0 0 if (-f $file)
845 0 0 unless ($self->errorblank)
849 0 0 unless (defined $name)
852 0 0 if ($name =~ /^ /)
855 0 0 if ($name =~ /\t/)
858 0 0 if ($name =~ /\n/)
861 0 0 if ($name =~ / $/)