Branch Coverage

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


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