Branch Coverage

blib/lib/Geo/IP/RU/IpGeoBase.pm
Criterion Covered Total %
branch 0 36 0.0


line true false branch
70 0 0 unless my $db = $self->{'db'}
72 0 0 if ($db->{'dbh'}) { }
73 0 0 unless $db->{'dsn'}
77 0 0 unless $db->{'dbh'} = 'DBI'->connect($db->{'dsn'}, $db->{'user'}, $db->{'pass'}, {'RaiseError', 0, 'PrintError', 0})
84 0 0 unless exists $db->{'decode'}
86 0 0 if ($db->{'decode'})
91 0 0 unless $db->{'driver'} = $db->{'dbh'}{'Driver'}{'Name'}
114 0 0 unless my $ip = shift()
131 0 0 if $rest{'order'}
133 0 0 if not $res and $dbh->errstr
146 0 0 if not $res and $dbh->errstr
201 0 0 unless $self->{'db'}{'decode'}
202 0 0 unless defined $value
205 0 0 ref $value eq 'ARRAY' ? :
213 0 0 @_ % 2 ? :
218 0 0 unless open my $fh, '<:encoding(cp1251)', $file
228 0 0 if exists $rec{'block'}
248 0 0 unless $self->can($call)