Branch Coverage

blib/lib/Net/Frame/Layer/IGMP.pm
Criterion Covered Total %
branch 8 40 20.0


line true false branch
85 0 0 if ($sType eq 17 and $wType eq 18 || $wType eq 22 || $wType eq 34)
104 0 1 if ($self->type == 34) { }
105 0 0 unless $raw = $self->SUPER::pack('CCnnn', $self->type, $self->maxResp, $self->checksum, $self->reserved, $self->numGroupRecs)
113 0 1 unless $raw = $self->SUPER::pack('CCna4', $self->type, $self->maxResp, $self->checksum, inetAton($self->groupAddress))
127 0 1 unless my($type, $maxResp, $checksum, $groupAddress, $payload) = $self->SUPER::unpack('CCna4 a*', $self->raw)
135 0 1 if ($self->type == 34) { }
152 0 0 if ($self->type == 34) { }
153 0 0 unless $phpkt .= $self->SUPER::pack('CCnnn', $self->type, $self->maxResp, 0, $self->reserved, $self->numGroupRecs)
157 0 0 unless $phpkt .= $self->SUPER::pack('CCna4', $self->type, $self->maxResp, 0, inetAton($self->groupAddress))
167 0 0 unless ($start)
168 0 0 if $l->layer eq 'IGMP'
174 0 0 if (defined $last->payload and length $last->payload)
178 0 0 if (length $payload)
179 0 0 unless $phpkt .= $self->SUPER::pack('a*', $payload)
191 0 1 if $self->nextLayer
193 0 1 if ($self->payload)
194 0 0 if ($self->type == 17) { }
0 0 elsif ($self->type == 34) { }
0 0 elsif ($self->type == 19) { }
214 2 11 if ($self->type == 34) { }