| blib/lib/Dancer2/Plugin/Locale.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 4 | 20 | 20.0 |
| line | true | false | branch |
|---|---|---|---|
| 26 | 8 | 11 | if (@_) |
| 43 | 0 | 1 | if (-d $locale_dir) |
| 44 | 0 | 0 | if (opendir my $dh, $locale_dir) { } |
| 46 | 0 | 0 | unless $file =~ /\.json$/ |
| 47 | 0 | 0 | if $file eq 'en.json' |
| 49 | 0 | 0 | if (Locales::normalize_tag($file) ne $file) |
| 54 | 0 | 0 | unless (-f "$locale_dir/$file.json") |
| 85 | 1 | 0 | $tag eq 'en' && !(-e $file) ? : |
| 101 | 0 | 0 | unless open my $fh, '<', $file |
| 109 | 0 | 0 | if ($@) |