Branch Coverage

blib/lib/Locale/TextDomain.pm
Criterion Covered Total %
branch 14 48 29.1


line true false branch
96 3 0 if (-d $dir)
175 1 1 if defined $textdomain and defined $bound_dirs{$textdomain}
188 0 0 unless (defined $textdomain)
190 0 0 if (exists $textdomains{$maybe_package})
197 0 0 if defined $textdomain and defined $bound_dirs{$textdomain}
212 0 0 if defined $textdomain and defined $bound_dirs{$textdomain}
227 0 0 if defined $textdomain and defined $bound_dirs{$textdomain}
242 0 0 if defined $textdomain and defined $bound_dirs{$textdomain}
258 0 0 if defined $textdomain and defined $bound_dirs{$textdomain}
275 0 0 if defined $textdomain and defined $bound_dirs{$textdomain}
290 0 0 if defined $textdomain and defined $bound_dirs{$textdomain}
305 0 0 if defined $textdomain and defined $bound_dirs{$textdomain}
320 0 0 if defined $textdomain and defined $bound_dirs{$textdomain}
351 0 2 if exists $textdomains{$package}
354 1 1 unless defined $textdomain and length $textdomain
361 2 0 unless (exists $bound_dirs{$textdomain})
362 2 0 unless (@search_dirs)
363 2 0 unless @search_dirs
365 0 2 if (my $share = eval { do { require File::ShareDir; File::ShareDir::dist_dir($textdomain) } })
389 1 0 if (defined $try_dirs)
397 1 0 if (opendir DIR, $dir)
402 1 0 if (-f $file or -l $file)
415 1 0 if defined $found_dir
429 0 0 defined $args{$1} ? :