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 33 $item_x <= $box_type_x and $item_y <= $box_type_y
6 0 33 $item_x <= $box_type_x and $item_y <= $box_type_y and $item_z <= $box_type_z
740 0 0 17295 $item->x > 0 and $item->y > 0
742 0 0 17295 $box->x >= $item->y and $box->y >= $item->x

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
227 0 17 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 9 0 shift() || $self->items
497 0 0 0 shift() || $self->items
630 2 1 0 shift() || $self->items
663 0 2 0 $options{'items'} || $self->items
664 0 2 0 $options{'stack_height'} || $self->find_tallest_z($items)
728 1 9 0 $options{'items'} || $self->sort_items_by_zA
748 5 0 17290 $new_count_per_layer > $original_count_per_layer or $original_x_per_layer == 0
5 0 17290 $new_count_per_layer > $original_count_per_layer or $original_x_per_layer == 0 or $original_y_per_layer == 0