Condition Coverage

blib/lib/Lingua/EUS/Numbers.pm
Criterion Covered Total %
condition 47 58 81.0


and 3 conditions

line !l l&&!r l&&r condition
115 134 0 32 $len == 7 and $extra_digits == 1
119 44 78 44 $len <= 8 and $len >= 7
122 4 40 $len <= 8 and $len >= 7 and $whats_left != 0
82 18 22 $len <= 8 and $len >= 7 and $whats_left != 0 and not reverse($num) =~ /^[^0]000/u
131 50 2 26 $hundreds != 0 and $tens == 0
52 8 18 $hundreds != 0 and $tens == 0 and $units == 0
10 30 20 $hundreds == 0 and $tens || $units
30 4 16 $hundreds == 0 and $tens || $units and not $num =~ /^0/u
14 2 28 $thousands == 0 and $hundreds == 0
16 28 0 $thousands == 0 and $hundreds == 0 and $tens || $units

or 2 conditions

line l !l condition
77 318 0 shift() // (return)
235 162 0 shift() // (return)

or 3 conditions

line l !l&&r !l&&!r condition
88 1 0 312 $num > '999999999999' or $num < 0
131 4 16 30 $tens || $units
18 16 44 $hundreds != 0 and $tens == 0 and $units == 0 or $hundreds == 0 and $tens || $units and not $num =~ /^0/u
2 0 26 $tens || $units
16 0 44 $hundreds != 0 and $tens == 0 and $units == 0 or $hundreds == 0 and $tens || $units and not $num =~ /^0/u or $thousands == 0 and $hundreds == 0 and $tens || $units
166 0 0 352 $num > 999 or $num < 0
185 10 18 0 $tens or $units
240 0 1 156 $num < 0 or $num > '999999999999'