Condition Coverage

blib/lib/Lingua/JPN/Num2Word.pm
Criterion Covered Total %
condition 22 43 51.1


and 3 conditions

line !l l&&!r l&&r condition
83 0 0 31 defined $n && $n =~ /\A\d+\z/msux
99 0 0 8 defined $n && $n =~ /\A\d+\z/msux
147 5 2 2 $bix and @r
148 1 0 1 $bix == 3 and $b =~ /[1-9]0$|[18]$/u
202 38 0 1 $bix == 3 and exists $CHO_IRREGULAR{$script}{$block}

or 2 conditions

line l !l condition
78 17 14 shift() // "kanji"
94 4 4 shift() // "kanji"

or 3 conditions

line l !l&&r !l&&!r condition
83 0 0 31 not defined $n && $n =~ /\A\d+\z/msux or $n < 1
0 0 31 not defined $n && $n =~ /\A\d+\z/msux or $n < 1 or $n >= "1e+16"
99 0 0 8 not defined $n && $n =~ /\A\d+\z/msux or $n < 1
0 0 8 not defined $n && $n =~ /\A\d+\z/msux or $n < 1 or $n >= "1e+16"
134 0 0 5 not defined $n or $n < 1
0 0 5 not defined $n or $n < 1 or $n >= "1e+16"
164 0 0 9 $n > 9999 or $n < 0
176 7 6 0 $_LEGACY_N2J_EXCP{$v} || $_LEGACY_N2J{$v} || ($_LEGACY_N2J{$digits[$i]}, $_LEGACY_N2J{$weights[$i]})