blib/lib/Net/DynDNS/GoDaddy.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 17 | 18 | 94.4 |
line | true | false | branch |
---|---|---|---|
34 | 1 | 5 | if $key and $secret |
38 | 1 | 4 | unless open my $fh, "<", "/root/godaddy_api.json" |
52 | 2 | 3 | unless ($key and $secret) |
61 | 0 | 3 | unless open my $fh, ">", "/root/godaddy_api.json" |
71 | 2 | 2 | unless (defined $host and defined $domain) |
82 | 2 | 3 | unless (defined $host and defined $domain and defined $ip) |
86 | 1 | 2 | unless ($ip =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/) |
120 | 1 | 1 | if ($status != 200) |
161 | 1 | 1 | if ($status != 200) |