Branch Coverage

blib/lib/Number/ZipCode/JP.pm
Criterion Covered Total %
branch 12 20 60.0


line true false branch
15 2 3 if (@_) { }
33 0 6 unless $pkg->require
48 0 3 if @_
55 0 149001 if (ref $number eq 'ARRAY') { }
0 149001 elsif (defined $_[0]) { }
149001 0 elsif ($number =~ /^(\d{3})(?:\D)?(\d{4})$/) { }
81 0 149001 unless ($pref or $suff)
85 0 149001 unless $pref =~ /^\d{3}$/ and $suff =~ /^\d{4}$/
87 0 149001 unless defined $re_ref and ref $re_ref eq "ARRAY"
90 147108 1893 if ($suff =~ /^$re$/)