Condition Coverage

blib/lib/Net/DNS/DynDNS.pm
Criterion Covered Total %
condition 35 108 32.4


and 3 conditions

line !l l&&!r l&&r condition
28 3 0 0 ref $user_name and ref $user_name eq 'SCALAR'
3 0 0 ref $user_name and ref $user_name eq 'HASH'
29 0 0 0 ref $password and ref $password eq 'SCALAR'
39 0 0 0 $params->{'timeout'} and $params->{'timeout'} =~ /^\d+$/msx
49 0 0 0 $params->{'user_agent'} and $params->{'user_agent'} =~ /\S/msx
64 1 0 2 $user_name and $password
121 1 0 0 $user_name and $password
137 0 0 0 defined $params->{'protocol'} and $params->{'protocol'}
139 0 0 0 $params->{'protocol'} ne 'http' and $params->{'protocol'} ne 'https'
197 0 0 2 $user_name and $password
213 1 0 1 ref $params and ref $params eq 'HASH'
247 1 0 0 $bytes[0] == FIRST_BYTE_OF_172_16_PRIVATE_RANGE() and $bytes[1] == SECOND_BYTE_OF_172_16_PRIVATE_RANGE()
1 0 0 $bytes[0] == FIRST_BYTE_OF_192_168_PRIVATE_RANGE() and $bytes[1] == SECOND_BYTE_OF_192_168_PRIVATE_RANGE()
272 0 1 0 defined $params->{'wildcard'} and $params->{'wildcard'}
274 1 0 0 $params->{'wildcard'} ne 'ON' and $params->{'wildcard'} ne 'OFF'
1 0 0 $params->{'wildcard'} ne 'ON' and $params->{'wildcard'} ne 'OFF' and $params->{'wildcard'} ne 'NOCHG'
294 0 1 0 defined $params->{'mx'} and $params->{'mx'}
323 0 1 0 defined $params->{'backmx'} and $params->{'backmx'}
325 1 0 0 $params->{'backmx'} ne 'YES' and $params->{'backmx'} ne 'NO'
341 0 1 0 defined $params->{'offline'} and $params->{'offline'}
343 0 1 0 $params->{'offline'} ne 'YES' and $params->{'offline'} ne 'NO'
359 0 1 0 defined $params->{'protocol'} and $params->{'protocol'}
361 1 0 0 $params->{'protocol'} ne 'http' and $params->{'protocol'} ne 'https'
377 3 3 0 exists $self->{'update_allowed'} and $self->{'update_allowed'}
409 2 0 0 ref $ip_address and ref $ip_address eq 'HASH'

or 2 conditions

line l !l condition
68 0 3 $params->{'server'} || 'dyndns.org'
69 0 3 $params->{'dns_server'} || 'members.dyndns.org'
70 0 3 $params->{'check_ip'} || 'checkip.dyndns.org'

or 3 conditions

line l !l&&r !l&&!r condition
243 0 0 4 $byte >= MAXIMUM_VALUE_OF_AN_OCTET() or $byte < 0
247 0 0 1 $bytes[0] == 0 or $bytes[0] == LOCALHOST_RANGE()
0 0 1 $bytes[0] == 0 or $bytes[0] == LOCALHOST_RANGE() or $bytes[0] == FIRST_BYTE_OF_10_PRIVATE_RANGE()
0 0 1 $bytes[0] == 0 or $bytes[0] == LOCALHOST_RANGE() or $bytes[0] == FIRST_BYTE_OF_10_PRIVATE_RANGE() or $bytes[0] == FIRST_BYTE_OF_172_16_PRIVATE_RANGE() and $bytes[1] == SECOND_BYTE_OF_172_16_PRIVATE_RANGE()
0 0 1 $bytes[0] == 0 or $bytes[0] == LOCALHOST_RANGE() or $bytes[0] == FIRST_BYTE_OF_10_PRIVATE_RANGE() or $bytes[0] == FIRST_BYTE_OF_172_16_PRIVATE_RANGE() and $bytes[1] == SECOND_BYTE_OF_172_16_PRIVATE_RANGE() or $bytes[0] == FIRST_BYTE_OF_192_168_PRIVATE_RANGE() and $bytes[1] == SECOND_BYTE_OF_192_168_PRIVATE_RANGE()
0 0 1 $bytes[0] == 0 or $bytes[0] == LOCALHOST_RANGE() or $bytes[0] == FIRST_BYTE_OF_10_PRIVATE_RANGE() or $bytes[0] == FIRST_BYTE_OF_172_16_PRIVATE_RANGE() and $bytes[1] == SECOND_BYTE_OF_172_16_PRIVATE_RANGE() or $bytes[0] == FIRST_BYTE_OF_192_168_PRIVATE_RANGE() and $bytes[1] == SECOND_BYTE_OF_192_168_PRIVATE_RANGE() or $bytes[0] >= MULTICAST_RESERVED_LOWEST_RANGE()
404 1 0 0 $errors{$code} || "Unknown error:${code}:$content"
461 2 0 0 $code eq 'good' or $code eq 'nochg'
2 0 0 $code eq 'good' or $code eq 'nochg' or $code eq '200'