| 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 |
| 269 | 6 | 6 | 15 | ref $phrase eq '' && $phrase =~ / (?: \(\( | \#\{ | \\\\ )/x |
| 300 | 0 | 0 | 1 | $alt_locale and $self->dictionaries->{$alt_locale} |
| 324 | 0 | 1 | 0 | scalar @fallback_locales == 1 and ref $fallback_locales[0] eq "ARRAY" |
| 354 | 0 | 2 | 4 | ref $item ne "HASH" and defined $item |
| line | l | !l | condition |
|---|---|---|---|
| 53 | 0 | 1 | $cfg->{'suffix'} // "yaml" |
| 0 | 1 | $cfg->{'default_locale'} // "en_US" | |
| 0 | 1 | $cfg->{'watch'} || 0 | |
| 1 | 0 | $cfg // {} | |
| 132 | 1 | 2 | $self->{'fallback_cache'}{$locale} //= {} |
| 138 | 2 | 1 | $self->{'fallbacks'}{$locale} // [] |
| 198 | 0 | 0 | $self->{'fallback_cache'}{$locale} //= {} |
| 202 | 0 | 0 | $self->{'fallbacks'}{$locale} // [] |
| 254 | 6 | 2 | $self->dictionaries->{$lang} //= {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 97 | 0 | 0 | 0 | not defined $mtime && defined $new_mtime or $new_mtime != $mtime |
| 184 | 26 | 0 | 2 | $self->t_or_undef(@_) || "[$_[0]]" |