Branch Coverage

blib/lib/Geo/StreetAddress/US.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
937 8 45 if ($addr =~ /$Addr_Match{'corner'}/iso)
961 7 38 unless $addr =~ /$Addr_Match{'address'}/iso
987 0 7 unless $addr =~ /$Addr_Match{'informal_address'}/iso
1008 0 8 unless $addr =~ /$Addr_Match{'intersection'}/iso
1016 5 1 if ($part{'type2'} and !$part{'type1'} || $part{'type1'} eq $part{'type2'})
1018 3 2 if ($type =~ s/s\W*$//iso and $type =~ /^$Addr_Match{'type'}$/iso)
1055 17 513 if defined $$part{$key} and exists $$map{lc $$part{$key}}
1063 2 51 if ($class->avoid_redundant_street_type)
1065 4 2 unless my $street = $$part{"street$suffix"}
1066 0 2 unless my $type = $$part{"type$suffix"}
1067 0 2 unless my $type_regex = $_Street_Type_Match{lc $type}
1069 2 0 if $street =~ /$type_regex/
1075 38 15 if $$part{'city'}
1080 23 30 if $$part{'zip'}