Condition Coverage

blib/lib/Net/DHCP/Packet.pm
Criterion Covered Total %
condition 11 35 31.4


and 3 conditions

line !l l&&!r l&&r condition
144 11 0 22 defined $value and $value ne ''
238 0 0 0 defined $value and $value ne ''
497 3 4 0 $options and exists $options->{'57'}
503 1 1 2 $max_message_size >= 300 and $max_message_size < 1500
561 0 0 5 length $opt_buf > 4 and substr($opt_buf, 0, 4) eq "c\202Sc"

or 2 conditions

line l !l condition
307 0 0 $Net::DHCP::Packet::REV_SUBOPTION_CODES{$code} || {}

or 3 conditions

line l !l&&r !l&&!r condition
48 0 22 0 ref $p || $p
150 3 0 30 $format eq 'string' or $format eq 'csr'
341 0 0 0 $$subcodes{$_->[0]} || $_->[0]
620 0 0 0 exists $Net::DHCP::Packet::REV_BOOTP_CODES{$self->op} && $Net::DHCP::Packet::REV_BOOTP_CODES{$self->op} || $self->op
628 0 0 0 exists $Net::DHCP::Packet::REV_HTYPE_CODES{$self->htype} && $Net::DHCP::Packet::REV_HTYPE_CODES{$self->htype} || $self->htype
654 0 0 0 exists $Net::DHCP::Packet::REV_DHCP_MESSAGE{$value} && $Net::DHCP::Packet::REV_DHCP_MESSAGE{$value} || $self->getOptionValue($key)