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 148966 if (ref $number eq 'ARRAY') { }
0 148966 elsif (defined $_[0]) { }
148966 0 elsif ($number =~ /^(\d{3})(?:\D)?(\d{4})$/) { }
81 0 148966 unless ($pref or $suff)
85 0 148966 unless $pref =~ /^\d{3}$/ and $suff =~ /^\d{4}$/
87 0 148966 unless defined $re_ref and ref $re_ref eq "ARRAY"
90 147073 1893 if ($suff =~ /^$re$/)