Branch Coverage

blib/lib/App/Web/Oof.pm
Criterion Covered Total %
branch 0 68 0.0


line true false branch
77 0 0 $data{'stock'} > 0 ? :
79 0 0 if $data{'brand'}
80 0 0 if $data{'model'}
93 0 0 $include_url ? :
101 0 0 if $highlight{$data->{'product'}}
104 0 0 unless $data->{'freepost'}
128 0 0 unless $data->{'freepost'}
142 0 0 unless /^quant/u
143 0 0 unless $params->{$_}
146 0 0 if ($data->{'stock'} == 0)
150 0 0 if ($data->{'quantity'} > $data->{'stock'})
156 0 0 if $data->{'freepost'}
161 0 0 unless $quant
165 0 0 if ($params->{'discount'})
167 0 0 if (not defined $discount) { }
0 0 elsif ($db{$$}->select('orders', 'COUNT(*)', {'discount', $params->{'discount'}})->list) { }
172 0 0 if $discount->{'fraction'}
173 0 0 if $discount->{'flat'}
180 0 0 unless $dvalue
181 0 0 unless $dvalue
183 0 0 if $quant == $quant_freepost
203 0 0 if ($id) { }
204 0 0 unless my $total = $db{$$}->select('orders', 'total', {'id', $id})->list
220 0 0 if $prod->{'quantity'} > $stock
232 0 0 if $ENV{'OOF_EMAIL_TO'}
237 0 0 if $err
265 0 0 unless -f $thumb
288 0 0 if ($data{$_}) { }
297 0 0 if $ahref->attr('href') eq '/'
309 0 0 unless $token
317 0 0 unless $data->{'freepost'}
327 0 0 if $data->{'stripe_token'}
360 0 0 if $res->[0] == 200
367 0 0 if (-f 'down.html')