Branch Coverage

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


line true false branch
69 0 0 $data{'stock'} > 0 ? :
81 0 0 $include_url ? :
89 0 0 if $highlight{$data->{'product'}}
92 0 0 unless $data->{'freepost'}
116 0 0 unless $data->{'freepost'}
130 0 0 unless /^quant/u
131 0 0 unless $params->{$_}
134 0 0 if ($data->{'stock'} == 0)
138 0 0 if ($data->{'quantity'} > $data->{'stock'})
144 0 0 if $data->{'freepost'}
149 0 0 unless $quant
153 0 0 if ($params->{'discount'})
155 0 0 if (not defined $discount) { }
0 0 elsif ($db{$$}->select('orders', 'COUNT(*)', {'discount', $params->{'discount'}})->list) { }
160 0 0 if $discount->{'fraction'}
161 0 0 if $discount->{'flat'}
168 0 0 unless $dvalue
169 0 0 unless $dvalue
171 0 0 if $quant == $quant_freepost
191 0 0 if ($id) { }
192 0 0 unless my $total = $db{$$}->select('orders', 'total', {'id', $id})->list
208 0 0 if $prod->{'quantity'} > $stock
220 0 0 if $ENV{'OOF_EMAIL_TO'}
225 0 0 if $err
253 0 0 unless -f $thumb
273 0 0 if $ahref->attr('href') eq '/'
285 0 0 unless $token
297 0 0 if $res->[0] == 200