Branch Coverage

blib/lib/WWW/Namecheap/DNS.pm
Criterion Covered Total %
branch 2 32 6.2


line true false branch
43 0 2 unless $params->{$_}
89 0 0 unless $params->{'DomainName'}
96 0 0 if ($params->{'DefaultNS'}) { }
109 0 0 unless $xml
111 0 0 if ($params->{'DefaultNS'}) { }
139 0 0 unless $params->{'DomainName'}
153 0 0 unless $xml
188 0 0 unless $params->{'DomainName'}
202 0 0 unless $xml
204 0 0 unless ($xml->{'CommandResponse'}{'DomainDNSGetHostsResult'}{'Host'})
208 0 0 if ($xml->{'CommandResponse'}{'DomainDNSGetHostsResult'}{'Host'} and ref $xml->{'CommandResponse'}{'DomainDNSGetHostsResult'}{'Host'} eq 'HASH')
278 0 0 unless $params->{'DomainName'}
293 0 0 unless $host->{'Name'} and $host->{'Type'} and $host->{'Address'}
306 0 0 unless $xml
323 2 0 if (@_ % 2 == 0) { }
0 0 elsif (ref $_[0] eq 'HASH') { }