Branch Coverage

blib/lib/Dancer2/Plugin/Interchange6/Routes/Cart.pm
Criterion Covered Total %
branch 22 24 91.6


line true false branch
30 1 43 $cart_name ? :
35 3 41 if (my(@skus) = $params->get_all('remove')) { }
3 75 elsif ($params->get('update') and defined $params->get('quantity')) { }
50 0 3 if $app->request->is_get
73 25 19 if (my $sku = $params->get('sku'))
81 1 24 unless (defined $product)
89 2 22 if (defined $product->canonical_sku)
116 4 0 unless defined $params->get($name)
125 11 13 if (keys %$attr_ref) { }
138 2 9 unless ($cart_product = $product->find_variant(\%user_input, \%match_info))
159 4 18 $params->get('quantity') ? :
183 3 38 if scalar @errors