Condition Coverage

File:lib/Geo/Coder/Free/Display.pm
Coverage:38.6%

line%coveragecondition
9633
ABdec
000
011
1X1
$params->{'info'} || 'CGI::Info'->new
11033
ABdec
000
011
1X1
$@ or not defined $config
12033
ABdec
000
011
1X1
$info->is_search_engine or not defined $ENV{'REMOTE_ADDR'}
13050
Adec
00
11
$config->{'security'}{'ids_threshold'} // 50
14033
ABdec
000
011
1X1
$config->{'throttle'}{'file'} // "File::Spec"->catdir($info->tmpdir, "throttle")
14450
Adec
00
11
$config->{'throttle'}{'interval'} // 90
50
Adec
00
11
$config->{'throttle'}{'max_items'} // 30
2120
ABdec
000
011
1X1
$sm ||= "HTML::SocialMedia"->new({"twitter", $twitter, "cache", $smcache, "lingua", $params->{'lingua'}, "logger", $params->{'logger'}})
23733
ABdec
0X0
100
111
defined $config_dir and -d $config_dir
29967
ABdec
0X0
100
111
$args and $args->{'cart'}
30767
ABdec
0X0
100
111
$args and $args->{'itemsincart'}
3110
ABdec
0X0
100
111
defined $args->{'cart'}{$key} and $args->{'cart'}{$key} ne ""
344100
Adec
00
11
$self->{'cache_duration'} ||= "5 minutes"
36733
ABdec
000
011
1X1
$ENV{'root_dir'} || $self->{'_config'}{'root_dir'} || $self->{'_info'}->root_dir
40233
ABdec
000
011
1X1
$args{'modulepath'} || ref $self
41333
ABdec
0X0
100
111
defined $filename and defined $fh
48350
Adec
00
11
$self->{'config'}{'security'}{'csrf'}{'enable'} // 1
60120
ABCDdec
0XXX0
10XX0
110X0
11100
11111
not $filename =~ /.txt$/u and $rc =~ /\smailto:(.+?)>/u and not $1 =~ /^&/u and $self->{'_logger'}
65250
Adec
00
11
$self->{'config'}{'security'}{'csrf'}{'secret'} // "default_secret"