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
142 11 0 22 defined $value and $value ne ''
233 0 0 0 defined $value and $value ne ''
483 3 4 0 $options and exists $options->{'57'}
489 1 1 2 $max_message_size >= 300 and $max_message_size < 1500
547 0 0 5 length $opt_buf > 4 and substr($opt_buf, 0, 4) eq "c\202Sc"

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
46 0 22 0 ref $p || $p
148 3 0 30 $format eq 'string' or $format eq 'csr'
335 0 0 0 $$subcodes{$_->[0]} || $_->[0]
606 0 0 0 exists $Net::DHCP::Packet::REV_BOOTP_CODES{$self->op} && $Net::DHCP::Packet::REV_BOOTP_CODES{$self->op} || $self->op
614 0 0 0 exists $Net::DHCP::Packet::REV_HTYPE_CODES{$self->htype} && $Net::DHCP::Packet::REV_HTYPE_CODES{$self->htype} || $self->htype
640 0 0 0 exists $Net::DHCP::Packet::REV_DHCP_MESSAGE{$value} && $Net::DHCP::Packet::REV_DHCP_MESSAGE{$value} || $self->getOptionValue($key)