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' ? :
205 4 0 if defined $textdomain and exists $bound_dirs{$textdomain}
220 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
237 3 0 if defined $textdomain and exists $bound_dirs{$textdomain}
253 3 0 if defined $textdomain and exists $bound_dirs{$textdomain}
269 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
287 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
305 4 0 if defined $textdomain and exists $bound_dirs{$textdomain}
314 1 0 ref $args[-1] eq 'HASH' ? :
324 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
336 2 0 ref $args[-1] eq 'HASH' ? :
347 3 0 if defined $textdomain and exists $bound_dirs{$textdomain}
358 1 0 ref $args[-1] eq 'HASH' ? :
368 3 0 if defined $textdomain and exists $bound_dirs{$textdomain}
379 1 0 ref $args[-1] eq 'HASH' ? :
389 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
401 2 0 ref $args[-1] eq 'HASH' ? :
411 6 0 if defined $textdomain and exists $bound_dirs{$textdomain}
423 2 0 ref $args[-1] eq 'HASH' ? :
438 19 0 defined $vars{$1} ? :
19 0 exists $vars{$1} ? :
448 56 0 if (defined $try_dirs)
455 0 0 if (opendir DIR, $dir)
459 0 0 if (-f $file or -l $file)