Condition Coverage

blib/lib/Box/Calc.pm
Criterion Covered Total %
condition 22 55 40.0


and 3 conditions

line !l l&&!r l&&r condition
255 6 0 41 $item_x <= $box_type_x and $item_y <= $box_type_y
6 0 41 $item_x <= $box_type_x and $item_y <= $box_type_y and $item_z <= $box_type_z
748 0 0 44923 $item->x > 0 and $item->y > 0
750 0 0 44923 $box->x >= $item->y and $box->y >= $item->x

or 2 conditions

line l !l condition
360 0 6 $item->{'quantity'} || 1
683 6 0 int $stack_height / $kind->[0]->z || 1

or 3 conditions

line l !l&&r !l&&!r condition
227 0 19 0 shift() || $self->box_types
397 0 1 0 shift() || $self->items
418 0 0 0 shift() || $self->items
420 0 0 0 $a->z <=> $b->z or $a->x <=> $b->x
443 0 0 0 shift() || $self->items
470 1 11 0 shift() || $self->items
497 0 0 0 shift() || $self->items
638 2 1 0 shift() || $self->items
671 0 2 0 $options{'items'} || $self->items
672 0 2 0 $options{'stack_height'} || $self->find_tallest_z($items)
736 1 11 0 $options{'items'} || $self->sort_items_by_zA
756 7 0 44916 $new_count_per_layer > $original_count_per_layer or $original_x_per_layer == 0
7 0 44916 $new_count_per_layer > $original_count_per_layer or $original_x_per_layer == 0 or $original_y_per_layer == 0