Branch Coverage

blib/lib/Dist/Zilla/Role/TextTemplater.pm
Criterion Covered Total %
branch 31 34 91.1


line true false branch
190 11 1 $emesg =~ / \s at \s \Q$tfile\E \s line \s (\d+)/x ? :
203 11 1 if ($eline)
206 5 7 if ($tline != $eline)
397 2 34 $hash ? :
411 4 32 $args ? :
424 36 0 if (defined $tt and not defined $Text::Template::ERROR)
426 29 7 if (not defined $package or $package eq '')
449 2 34 if (defined $Text::Template::ERROR)
460 2 0 if ($Text::Template::ERROR =~ /$known/x)
462 1 1 $type ? :
473 2 34 if (defined $Text::Template::ERROR)
477 11 25 if (@$errors)
481 24 1 if ($file->does('Dist::Zilla::Role::MutableFile'))
552 6 1 if ($class) { }
553 4 2 if ($file->isa('Moose::Object') and $file->does('Dist::Zilla::Role::File')) { }
1 1 elsif ($file->isa('Path::Tiny')) { }
1 0 elsif ($file->isa('Path::Class::File')) { }