| line |
true |
false |
branch |
|
35
|
0 |
5 |
unless $attrs{'cancel-url'} and $attrs{'success-url'} |
|
40
|
0 |
5 |
if $attrs{'api-public'} and not $attrs{'api-public'} =~ /^pk_/ |
|
41
|
0 |
5 |
unless $attrs{'api-secret'} =~ /^sk_/ |
|
42
|
0 |
5 |
if $attrs{'api-public'} and $attrs{'api-public'} =~ /^sk_/ |
|
43
|
0 |
5 |
if $attrs{'api-secret'} =~ /^pk_/ |
|
44
|
1 |
4 |
unless length $attrs{'api-secret'} > 100 |
|
45
|
0 |
5 |
unless $attrs{'api-secret'} |
|
64
|
0 |
4 |
unless ($product{'price'} > 0 and not $product{'price'} =~ /\./) |
|
68
|
0 |
4 |
unless ($product{'qty'} > 0 and not $product{'qty'} =~ /\./) |
|
73
|
0 |
4 |
unless ($product{'name'}) |
|
80
|
0 |
3 |
if ($prod->{'id'} eq $product{'id'}) |
|
108
|
0 |
15 |
unless ($id) |
|
114
|
15 |
15 |
if ($prod->{'id'} eq $id) |
|
125
|
0 |
3 |
unless ($id) |
|
131
|
2 |
3 |
if (do {
$$self{'trolley'}
}->[$i]{'id'} eq $id) |
|
146
|
0 |
4 |
if ($self->{'intent'}) |
|
158
|
0 |
4 |
if ($self->{'url'} =~ m[^https://www\.boddison\.com]) |
|
161
|
0 |
0 |
if $self->{'api-test-fail'} |
|
175
|
0 |
4 |
if $self->{'email'} |
|
181
|
0 |
0 |
if $prod->{'description'} |
|
190
|
0 |
4 |
if ($response->{'success'}) { } |
|
197
|
0 |
4 |
if ($@) { } |
|
208
|
0 |
1 |
if $attrs{'reference'} |
|
209
|
0 |
1 |
if $attrs{'email'} |
|
218
|
0 |
3 |
if $attrs{'reference'} |
|
219
|
0 |
3 |
if $attrs{'email'} |
|
223
|
3 |
0 |
if ($self->{'error'}) { } |
|
233
|
0 |
2 |
if $attrs{'public-key'} |
|
236
|
0 |
2 |
unless ($self->{'api-public'}) |
|
241
|
0 |
2 |
if $attrs{'reference'} |
|
242
|
0 |
2 |
if $attrs{'email'} |
|
247
|
2 |
0 |
if ($self->{'error'}) { } |
|
256
|
1 |
1 |
unless $attrs{'format'} |
|
257
|
0 |
2 |
if lc $attrs{'format'} eq 'json' |
|
266
|
1 |
0 |
if $self->{'error'} |
|
270
|
0 |
0 |
unless ($key and $session) |