Condition Coverage

blib/lib/Lingua/AFR/Numbers.pm
Criterion Covered Total %
condition 25 61 40.9


and 3 conditions

line !l l&&!r l&&r condition
80 1 0 3 defined $number && $number =~ /\A\d+\z/msx
95 2 0 0 defined $$digits[10] and $$digits[10] != 0
2 0 0 defined $$digits[9] and $$digits[9] != 0
104 2 0 0 defined $$digits[8] and $$digits[8] != 0
105 0 0 0 $$digits[7] == 0 and $$digits[6] == 0
114 2 0 0 defined $$digits[7] and $$digits[7] != 0
2 0 0 defined $$digits[6] and $$digits[6] != 0
123 2 0 0 defined $$digits[5] and $$digits[5] != 0
124 0 0 0 $$digits[4] == 0 and $$digits[3] == 0
133 1 0 1 defined $$digits[4] and $$digits[4] != 0
1 0 0 defined $$digits[3] and $$digits[3] != 0
142 0 0 2 defined $$digits[2] and $$digits[2] != 0
187 2 0 0 $$digits[0] == 0 and $$digits[1] == 0

or 2 conditions

line l !l condition
58 0 1 shift() || ''
74 4 0 shift() // (return)

or 3 conditions

line l !l&&r !l&&!r condition
80 1 0 3 not defined $number && $number =~ /\A\d+\z/msx or $number < 0
1 1 2 not defined $number && $number =~ /\A\d+\z/msx or $number < 0 or $number > 99999999999
187 0 0 2 $$digits[0] == 0 or $$digits[1] == 0
0 0 2 $$digits[0] == 0 or $$digits[1] == 0 or $$digits[1] == 1
214 3 0 0 $units or $tens
218 1 0 2 $tens == 1 or $units == 0