Branch Coverage

blib/lib/Template/Plugin/Gettext.pm
Criterion Covered Total %
branch 41 84 48.8


line true false branch
48 0 10 if (-d $dir)
60 57 0 unless defined $textdomain and length $textdomain
61 57 0 unless defined $charset and length $charset
64 57 0 if ("input text" eq $template or "input file handle" eq $template)
66 0 57 if defined $maybe_template and length $maybe_template
71 56 1 unless (exists $bound_dirs{$textdomain})
72 56 0 unless (@search_dirs)
81 0 57 if defined $language
92 0 4 ref $args[-1] eq 'HASH' ? :
101 0 2 ref $args[-1] eq 'HASH' ? :
110 0 2 ref $args[-1] eq 'HASH' ? :
119 0 4 ref $args[-1] eq 'HASH' ? :
128 0 4 ref $args[-1] eq 'HASH' ? :
137 3 0 ref $args[-1] eq 'HASH' ? :
146 4 0 ref $args[-1] eq 'HASH' ? :
155 2 0 ref $args[-1] eq 'HASH' ? :
164 2 0 ref $args[-1] eq 'HASH' ? :
173 4 0 ref $args[-1] eq 'HASH' ? :
182 4 0 ref $args[-1] eq 'HASH' ? :
208 4 0 if defined $textdomain and exists $bound_dirs{$textdomain}
226 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
246 3 0 if defined $textdomain and exists $bound_dirs{$textdomain}
265 3 0 if defined $textdomain and exists $bound_dirs{$textdomain}
284 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
305 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
326 4 0 if defined $textdomain and exists $bound_dirs{$textdomain}
335 1 0 ref $args[-1] eq 'HASH' ? :
348 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
360 2 0 ref $args[-1] eq 'HASH' ? :
374 3 0 if defined $textdomain and exists $bound_dirs{$textdomain}
385 1 0 ref $args[-1] eq 'HASH' ? :
398 3 0 if defined $textdomain and exists $bound_dirs{$textdomain}
409 1 0 ref $args[-1] eq 'HASH' ? :
422 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
434 2 0 ref $args[-1] eq 'HASH' ? :
447 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
459 2 0 ref $args[-1] eq 'HASH' ? :
474 19 0 defined $vars{$1} ? :
19 0 exists $vars{$1} ? :
484 56 0 if (defined $try_dirs)
491 0 0 if (opendir DIR, $dir)
495 0 0 if (-f $file or -l $file)