Branch Coverage

blib/lib/EasyDNS/DDNS/Config.pm
Criterion Covered Total %
branch 12 30 40.0


line true false branch
20 0 3 if not defined $cfg_path or $cfg_path eq ""
24 3 0 if (-f $cfg_path)
26 0 3 unless ($ct)
61 3 0 if ($cli->{'hosts'} and ref $cli->{'hosts'} eq "ARRAY")
63 0 0 if (ref $h eq 'ARRAY') { }
69 0 0 if defined $_
85 0 3 @hosts_from_cli ? :
90 3 0 if (defined $cfg_timeout and $cfg_timeout ne "" and $cfg_timeout =~ /^\d+$/)
93 0 1 if (defined $cli_timeout and $cli_timeout =~ /^\d+$/ and $cli_timeout > 0)
103 3 0 $token ? :
133 0 6 if not defined $path or $path eq ""
134 6 0 unless $path =~ m[^~(/|$)]
142 0 12 unless defined $s
143 0 0 exists $env->{$1} ? :
149 0 3 if not defined $s or $s eq ""