Branch Coverage

blib/lib/Plack/Middleware/GeoIP.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
15 0 0 if $flag eq 'MemoryCache'
16 0 0 if $flag eq 'CheckCache'
17 0 0 if $flag eq 'IndexCache'
18 0 0 if $flag eq 'MMapCache'
25 0 0 if (my $dbfiles = $self->GeoIPDBFile) { }
26 0 0 ref $dbfiles ? :
28 0 0 ref $dbfile ? :
31 0 0 ref $flag ? :
38 0 0 if $self->GeoIPEnableUTF8
55 0 0 if (1 == $type) { }
0 0 elsif (6 == $type or 2 == $type) { }
56 0 0 if (my $code = $gi->country_code_by_addr($ipaddr))
63 0 0 if (my $record = $gi->record_by_addr($ipaddr))
70 0 0 if $record->time_zone
71 0 0 if $record->region
72 0 0 if $record->region and $record->region_name
73 0 0 if $record->city
74 0 0 if $record->postal_code
75 0 0 if $record->metro_code
76 0 0 if $record->area_code