Branch Coverage

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


line true false branch
76 0 0 $data{'stock'} > 0 ? :
88 0 0 $include_url ? :
96 0 0 if $highlight{$data->{'product'}}
99 0 0 unless $data->{'freepost'}
123 0 0 unless $data->{'freepost'}
137 0 0 unless /^quant/u
138 0 0 unless $params->{$_}
141 0 0 if ($data->{'stock'} == 0)
145 0 0 if ($data->{'quantity'} > $data->{'stock'})
151 0 0 if $data->{'freepost'}
156 0 0 unless $quant
160 0 0 if ($params->{'discount'})
162 0 0 if (not defined $discount) { }
0 0 elsif ($db{$$}->select('orders', 'COUNT(*)', {'discount', $params->{'discount'}})->list) { }
167 0 0 if $discount->{'fraction'}
168 0 0 if $discount->{'flat'}
175 0 0 unless $dvalue
176 0 0 unless $dvalue
178 0 0 if $quant == $quant_freepost
198 0 0 if ($id) { }
199 0 0 unless my $total = $db{$$}->select('orders', 'total', {'id', $id})->list
215 0 0 if $prod->{'quantity'} > $stock
227 0 0 if $ENV{'OOF_EMAIL_TO'}
232 0 0 if $err
260 0 0 unless -f $thumb
281 0 0 if $ahref->attr('href') eq '/'
293 0 0 unless $token
301 0 0 unless $data->{'freepost'}
311 0 0 if $data->{'stripe_token'}
344 0 0 if $res->[0] == 200