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
47 0 0 6 defined $_[0] and length $_[0]
65 1 1 84 defined $x and length $x
96 68 0 67 defined $_ && length $_
106 32 0 13 defined $_[0] and length $_[0]
113 33 0 12 defined $_[0] and length $_[0]
122 3 0 71 defined $_[0] and length $_[0]
3 0 71 defined $_[0] and length $_[0] and $_[0] =~ /^[0-9]+$/s
146 0 0 9 defined $_[0] and length $_[0]
0 0 9 defined $_[0] and length $_[0] and $_[0] =~ /^[0-9]+$/s
166 2 1 6 $chunks[-1][1] == 0 and $chunks[-1][0] < 100
176 3 0 6 $and and @chunks > 1
181 7 1 1 @chunks == 2 and not $and

or 3 conditions

line l !l&&r !l&&!r condition
56 0 0 4 $Card2ord{$last} || $last =~ s/y$/ieth/ && $last || (!($last =~ /th$/) ? $last . 'th' : $last)