| blib/lib/Geo/StreetAddress/US.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 25 | 68.0 |
| line | l | !l | condition |
|---|---|---|---|
| 915 | 16 | 16 | exists $_{$_} and $_{$_ . 1} = delete $_{$_} |
| 917 | 16 | 16 | exists $_{$_} and $_{$_ . 2} = delete $_{$_} |
| 1052 | 0 | 305 | defined $_ and s/^\s+|\s+$|[^\w\s\-\#\&]//sog |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 1016 | 2 | 6 | 0 | $part{'type2'} and !$part{'type1'} || $part{'type1'} eq $part{'type2'} |
| 1018 | 2 | 0 | 3 | $type =~ s/s\W*$//iso and $type =~ /^$Addr_Match{'type'}$/iso |
| 1055 | 406 | 107 | 17 | defined $$part{$key} and exists $$map{lc $$part{$key}} |
| line | l | !l | condition |
|---|---|---|---|
| 808 | 0 | 0 | $_{'type'} ||= '' |
| 816 | 779 | 0 | $_{'type'} ||= '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 940 | 38 | 7 | 0 | $class->parse_address($addr) || $class->parse_informal_address($addr) |
| 1016 | 0 | 5 | 1 | !$part{'type1'} || $part{'type1'} eq $part{'type2'} |