Branch Coverage

blib/lib/Dancer2/Plugin/Interchange6/Cart.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
89 51 18 if ($cart->in_storage) { }
193 67 0 $record->extra ? :
240 28 0 unless ref $args eq 'ARRAY'
250 1 27 unless (ref $arg eq 'HASH')
255 0 28 unless defined $arg->{'sku'}
259 0 28 unless defined $result
271 27 1 defined $arg->{'quantity'} ? :
5 23 defined $arg->{'extra'} ? :
274 5 23 if (defined $arg->{'combine'}) { }
23 0 elsif ($result->can('combine')) { }
303 22 5 if ($ret->should_combine_by_sku)
309 6 21 if ($cart_product) { }
329 0 27 wantarray ? :
363 0 5 unless $self->users_id
386 5 0 $cart_product->extra ? :
419 1 3 unless $index >= 0
549 0 3 unless $qty =~ /^\d+$/
551 1 2 if ($qty == 0)