| blib/lib/Locale/Babelfish.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 39 | 48.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 97 | 0 | 0 | 0 | defined $mtime && defined $new_mtime |
| 266 | 48 | 12 | 30 | ref $phrase eq '' && $phrase =~ / (?: \(\( | \#\{ | \\\\ )/x |
| 297 | 0 | 0 | 2 | $alt_locale and $self->dictionaries->{$alt_locale} |
| 321 | 0 | 2 | 0 | scalar @fallback_locales == 1 and ref $fallback_locales[0] eq "ARRAY" |
| 351 | 0 | 2 | 4 | ref $item ne "HASH" and defined $item |
| line | l | !l | condition |
|---|---|---|---|
| 53 | 0 | 2 | $cfg->{'suffix'} // "yaml" |
| 0 | 2 | $cfg->{'default_locale'} // "en_US" | |
| 0 | 2 | $cfg->{'watch'} || 0 | |
| 2 | 0 | $cfg // {} | |
| 129 | 1 | 2 | $self->{'fallback_cache'}{$locale} //= {} |
| 135 | 2 | 1 | $self->{'fallbacks'}{$locale} // [] |
| 195 | 0 | 0 | $self->{'fallback_cache'}{$locale} //= {} |
| 199 | 0 | 0 | $self->{'fallbacks'}{$locale} // [] |
| 251 | 12 | 4 | $self->dictionaries->{$lang} //= {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 97 | 0 | 0 | 0 | not defined $mtime && defined $new_mtime or $new_mtime != $mtime |
| 181 | 46 | 2 | 0 | $self->t_or_undef(@_) || "[$_[0]]" |