Condition Coverage

blib/lib/Net/DNS/DynDNS.pm
Criterion Covered Total %
condition 14 108 12.9


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'
192 0 0 1 $user_name and $password
208 1 0 0 ref $params and ref $params eq 'HASH'
242 0 0 0 $bytes[0] == FIRST_BYTE_OF_172_16_PRIVATE_RANGE() and $bytes[1] == SECOND_BYTE_OF_172_16_PRIVATE_RANGE()
0 0 0 $bytes[0] == FIRST_BYTE_OF_192_168_PRIVATE_RANGE() and $bytes[1] == SECOND_BYTE_OF_192_168_PRIVATE_RANGE()
267 0 0 0 defined $params->{'wildcard'} and $params->{'wildcard'}
269 0 0 0 $params->{'wildcard'} ne 'ON' and $params->{'wildcard'} ne 'OFF'
0 0 0 $params->{'wildcard'} ne 'ON' and $params->{'wildcard'} ne 'OFF' and $params->{'wildcard'} ne 'NOCHG'
289 0 0 0 defined $params->{'mx'} and $params->{'mx'}
318 0 0 0 defined $params->{'backmx'} and $params->{'backmx'}
320 0 0 0 $params->{'backmx'} ne 'YES' and $params->{'backmx'} ne 'NO'
336 0 0 0 defined $params->{'offline'} and $params->{'offline'}
338 0 0 0 $params->{'offline'} ne 'YES' and $params->{'offline'} ne 'NO'
354 0 0 0 defined $params->{'protocol'} and $params->{'protocol'}
356 0 0 0 $params->{'protocol'} ne 'http' and $params->{'protocol'} ne 'https'
372 3 0 2 exists $self->{'update_allowed'} and $self->{'update_allowed'}
404 1 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
238 0 0 0 $byte >= MAXIMUM_VALUE_OF_AN_OCTET() or $byte < 0
242 0 0 0 $bytes[0] == 0 or $bytes[0] == LOCALHOST_RANGE()
0 0 0 $bytes[0] == 0 or $bytes[0] == LOCALHOST_RANGE() or $bytes[0] == FIRST_BYTE_OF_10_PRIVATE_RANGE()
0 0 0 $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 0 $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 0 $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()
399 1 0 0 $errors{$code} || "Unknown error:${code}:$content"
451 0 0 0 $code eq 'good' or $code eq 'nochg'
0 0 0 $code eq 'good' or $code eq 'nochg' or $code eq '200'