Condition Coverage

blib/lib/NetAddr/MAC.pm
Criterion Covered Total %
condition 23 44 52.2


and 3 conditions

line !l l&&!r l&&r condition
141 1 0 0 $args{'priority'} and $args{'priority'} != $self->{'priority'}
201 269 0 0 @parts == 1 and length $parts[0] == 12 || length $parts[0] == 16
299 8 1 6 $self->{'mac'}[0] & 1 && !is_broadcast($self)
323 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
337 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
350 11 4 6 is_eui48($self) && $self->{'mac'}[0] == 0 && $self->{'mac'}[1] == 0 && $self->{'mac'}[2] == 12 && $self->{'mac'}[3] == 159
364 24 0 2 is_eui48($self) && ($self->{'mac'}[0] == 2 || $self->{'mac'}[0] == 3) && $self->{'mac'}[1] == 191
514 0 0 0 @{$$self{'mac'};}[3] == 255 and @{$$self{'mac'};}[4] == 255 || @{$$self{'mac'};}[4] == 254

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
88 0 16 0 ref $p || $p
201 0 0 0 length $parts[0] == 12 || length $parts[0] == 16
213 188 75 6 @parts == 6 or @parts == 8
218 1 0 5 @parts == 3 or @parts == 4
238 1 31 0 $e ||= "Invalid MAC format '${mac}'"
514 0 0 0 @{$$self{'mac'};}[4] == 255 || @{$$self{'mac'};}[4] == 254