Branch Coverage

blib/lib/FormValidator/Simple/Plugin/Japanese.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
24 8 8 if ($charset eq $name)
60 1 1 $value =~ /^(?:\xA4[\x00-\xFF]|\xA1\xBC)+$/ ? :
66 1 1 $value =~ /^(?:\xA5[\x00-\xFF]|\xA1\xBC)+$/ ? :
76 2 2 $min <= $length && $length <= $max ? :
81 2 1 if (scalar @$params == 1) { }
1 0 elsif (scalar @$params == 2) { }
82 2 0 $$params[0] =~ /^\d{3}\-{0,1}\d{4}$/ ? :
85 1 0 $$params[0] =~ /^\d{3}$/ && $$params[1] =~ /^\d{4}$/ ? :
96 1 3 if (@$args == 0) { }
97 1 0 Mail::Address::MobileJp::is_mobile_jp($$params[0]) ? :
103 1 3 if (lc $career eq 'imode') { }
1 2 elsif (lc $career eq 'ezweb') { }
1 1 elsif (lc $career eq 'vodafone') { }
1 0 elsif (lc $career eq 'softbank') { }
104 0 1 if (Mail::Address::MobileJp::is_imode($$params[0]))
110 0 1 if (Mail::Address::MobileJp::is_ezweb($$params[0]))
116 1 0 if (Mail::Address::MobileJp::is_vodafone($$params[0]))
122 1 0 if (Mail::Address::MobileJp::is_softbank($$params[0]))
133 2 1 $ok ? :