blib/lib/Lingua/Any/Numbers.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 35 | 62 | 56.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
110 | 76 | 8 | 0 | $lang eq 'LOCALE' || $USE_LOCALE and not exists $LMAP{$lang} |
135 | 0 | 0 | 0 | defined &SILENT && SILENT() |
145 | 12 | 0 | 12 | $type && !$class->can('parse') |
239 | 0 | 4 | 0 | not $numbers and $ords || $words |
252 | 0 | 0 | 4 | $words and not $c->can('num2tr') |
253 | 0 | 0 | 4 | $ords and not $c->can('num2ord') |
316 | 24 | 0 | 4 | $s{'cardinal'} && $n |
326 | 40 | 4 | 32 | $s{'new'} && !_like_en($c) |
332 | 56 | 4 | 4 | $s{'ordinal'} && $n |
line | l | !l | condition |
---|---|---|---|
97 | 46 | 0 | shift() || (return) |
98 | 46 | 0 | $LMAP{uc $lang} || (return) |
130 | 0 | 8 | $user_wants[0] || (return) |
242 | 0 | 4 | $INC{$file} ||= 'Fake placeholder module' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
105 | 84 | 0 | 0 | shift() || croak('No type specified') |
107 | 80 | 4 | 0 | shift() || _get_lang() |
110 | 0 | 8 | 76 | $lang eq 'LOCALE' || $USE_LOCALE |
115 | 84 | 0 | 0 | $LMAP{$lang} || croak("Language ($lang) is not available") |
122 | 4 | 4 | 0 | $locale or $USE_LOCALE |
193 | 24 | 20 | 76 | $dir =~ / \A [.] /msx or $NOT_LANG{$dir} |
213 | 300 | 0 | 80 | not -e $file or -d _ |
239 | 4 | 0 | 0 | $ords || $words |
339 | 4 | 0 | 32 | $c->isa('Lingua::EN::Numbers') || $c->isa('Lingua::JA::Numbers') || $c->isa('Lingua::TR::Numbers') |