Condition Coverage

blib/lib/NetAddr/MAC.pm
Criterion Covered Total %
condition 23 47 48.9


and 3 conditions

line !l l&&!r l&&r condition
142 1 0 0 $args{'priority'} and $args{'priority'} != $self->{'priority'}
202 269 0 0 @parts == 1 and length $parts[0] == 12 || length $parts[0] == 16
327 8 1 6 $self->{'mac'}[0] & 1 && !is_broadcast($self)
351 10 0 4 is_eui48($self) && $self->{'mac'}[0] == 0 && $self->{'mac'}[1] == 0 && $self->{'mac'}[2] == 94 && $self->{'mac'}[3] == 0 && $self->{'mac'}[4] == 1
365 10 0 4 is_eui48($self) && $self->{'mac'}[0] == 0 && $self->{'mac'}[1] == 0 && $self->{'mac'}[2] == 12 && $self->{'mac'}[3] == 7 && $self->{'mac'}[4] == 172
378 11 4 6 is_eui48($self) && $self->{'mac'}[0] == 0 && $self->{'mac'}[1] == 0 && $self->{'mac'}[2] == 12 && $self->{'mac'}[3] == 159
392 24 0 2 is_eui48($self) && ($self->{'mac'}[0] == 2 || $self->{'mac'}[0] == 3) && $self->{'mac'}[1] == 191
542 0 0 0 @{$$self{"mac"};}[3] == 255 and @{$$self{'mac'};}[4] == 255 || @{$$self{'mac'};}[4] == 254

or 2 conditions

line l !l condition
150 0 2 $args{'priority'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
89 0 16 0 ref $p || $p
202 0 0 0 length $parts[0] == 12 || length $parts[0] == 16
214 188 75 6 @parts == 6 or @parts == 8
219 1 0 5 @parts == 3 or @parts == 4
239 1 31 0 $e ||= "Invalid MAC format '${mac}'"
259 0 0 0 ref $p || $p
542 0 0 0 @{$$self{'mac'};}[4] == 255 || @{$$self{'mac'};}[4] == 254