Branch Coverage

blib/lib/Net/Frame/Layer/ICMPv4.pm
Criterion Covered Total %
branch 4 34 11.7


line true false branch
110 0 0 if ($sType eq 8 and $wType eq 0) { }
0 0 elsif ($sType eq 13 and $wType eq 14) { }
0 0 elsif ($sType eq 15 and $wType eq 16) { }
0 0 elsif ($sType eq 17 and $wType eq 18) { }
138 0 1 unless my $raw = $self->SUPER::pack('CCn', $self->type, $self->code, $self->checksum)
148 0 1 unless my($type, $code, $checksum, $payload) = $self->SUPER::unpack('CCn a*', $self->raw)
167 0 0 if ($l->layer =~ /ICMPv4::/)
170 0 0 unless my $packed = $self->SUPER::pack('CCna*', $self->type, $self->code, 0, $icmpType->pack)
183 0 1 if $self->nextLayer
185 0 1 if ($self->payload)
187 0 0 if ($type eq 8 or $type eq 0) { }
0 0 elsif ($type eq 13 or $type eq 14) { }
0 0 elsif ($type eq 15 or $type eq 16) { }
0 0 elsif ($type eq 17 or $type eq 18) { }
0 0 elsif ($type eq 3) { }
0 0 elsif ($type eq 5) { }
0 0 elsif ($type eq 11) { }