Condition Coverage

blib/lib/Lingua/ZHO/Num2Word.pm
Criterion Covered Total %
condition 20 44 45.4


and 3 conditions

line !l l&&!r l&&r condition
142 4 0 8 defined $input && $input =~ /\A[\-\.\d]+\z/msux
176 20 0 0 $n == 0 and $tmp =~ /$zero/u
16 4 0 $_ == 1 and $n == 1
20 0 0 $_ == 1 and $n == 1 and not $tmp
183 4 8 0 $num < 1000 and $mag != $#chunks
12 0 0 $num < 1000 and $mag != $#chunks and not $out =~ /$zero/u
208 0 0 0 defined $number && $number =~ /\A\d+\z/msux

or 2 conditions

line l !l condition
163 4 4 $input ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
90 0 0 3 $charset =~ /^gb/iu or $charset =~ /^euc-cn$/iu
142 4 0 8 not defined $input && $input =~ /\A[\-\.\d]+\z/msux or $input >= '1000000000000000'
175 12 8 28 $tmp or $n
176 0 0 20 $n == 0 and $tmp =~ /$zero/u or $_ == 1 and $n == 1 and not $tmp
197 4 0 4 $out || $dig[0]
208 0 0 0 not defined $number && $number =~ /\A\d+\z/msux or $number < 1
0 0 0 not defined $number && $number =~ /\A\d+\z/msux or $number < 1 or $number > '999999999999'