Branch Coverage

blib/lib/Geo/LookupPostcode.pm
Criterion Covered Total %
branch 47 52 90.3


line true false branch
84 0 100002 if @_ != 2
95 0 100002 unless $lookup_table{$country}
102 20301 79701 if ($lookup_table{$country}{$lookup_key})
106 19269 2734 if (not $rh_geo_entry->{'function'} or $rh_geo_entry->{'function'}->())
110 0 20301 if (@results > 1) { }
19269 1032 elsif (@results == 1) { }
249 273 2 unless $_ >= 9121 and $_ <= 9134 or $_ >= 9018 and $_ <= 9019 or $_ >= 9042 and $_ <= 9049 or $_ == 8030 or $_ == 8033 or $_ == 8035
257 199 1 unless $_ == 86100
276 90 10 if $_ >= 9010
373 1 199 if $_ == 34170
392 199 1 unless $_ == 86170
454 80 20 if $_ >= 9020
510 182 2 unless $_ == 8100 or $_ == 8012 or $_ >= 8014 and $_ <= 8018 or $_ >= 8021 and $_ <= 8029 or $_ >= 8031 and $_ <= 8032
518 10 90 if $_ >= 8040 and $_ <= 8049
526 266 2 unless $_ == 9170 or $_ >= 9070 and $_ <= 9099 or $_ == 8010 or $_ == 8013 or $_ == 8019
534 190 10 unless $_ >= 7020 and $_ <= 7029
577 199 1 unless $_ == 33170
650 118 79 unless $_ >= 118 and $_ <= 119 or $_ >= 121 and $_ <= 199
657 196 4 unless $_ >= 47921 and $_ <= 47924
670 10 90 if $_ >= 47890
714 189 10 unless $_ == 7100 or $_ >= 7010 and $_ <= 7019
763 169 31 unless $_ >= 34121 and $_ <= 34151
776 199 1 unless $_ == 33100
880 12 192 if (@{$rh_lookup->{$key};} >= 2)
881 0 12 unless (_all(sub { $_->{'function'}; } , @{$$rh_lookup{$key};}))
895 0 29 unless &$rc_sub()