Condition Coverage

blib/lib/Lingua/EN/Numbers.pm
Criterion Covered Total %
condition 25 39 64.1


and 3 conditions

line !l l&&!r l&&r condition
49 0 0 4 defined $_[0] and length $_[0]
67 1 1 78 defined $x and length $x
98 64 0 59 defined $_ && length $_
108 30 0 11 defined $_[0] and length $_[0]
115 31 0 10 defined $_[0] and length $_[0]
124 3 0 67 defined $_[0] and length $_[0]
3 0 67 defined $_[0] and length $_[0] and $_[0] =~ /^\d+$/s
148 0 0 9 defined $_[0] and length $_[0]
0 0 9 defined $_[0] and length $_[0] and $_[0] =~ /^\d+$/s
168 2 1 6 $chunks[-1][1] == 0 and $chunks[-1][0] < 100
178 3 0 6 $and and @chunks > 1
183 7 1 1 @chunks == 2 and not $and

or 3 conditions

line l !l&&r !l&&!r condition
57 0 0 2 $Lingua::EN::Numbers::Card2ord{$last} || $last =~ s/y$/ieth/ && $last || (!($last =~ /th$/) ? $last . 'th' : $last)