Branch Coverage

blib/lib/Dancer2/Plugin/Interchange6/Cart.pm
Criterion Covered Total %
branch 20 26 76.9


line true false branch
88 42 16 if ($cart->in_storage) { }
235 17 0 unless ref $args eq 'ARRAY'
245 1 16 unless (ref $arg eq 'HASH')
250 0 17 unless defined $arg->{'sku'}
254 0 17 unless defined $result
265 16 1 defined $arg->{'quantity'} ? :
286 3 13 if ($cart_product) { }
304 0 16 wantarray ? :
338 0 4 unless $self->users_id
364 1 1 if ($product) { }
416 1 3 unless $index >= 0
546 0 3 unless $qty =~ /^\d+$/
548 1 2 if ($qty == 0)