Condition Coverage

blib/lib/Business/Stripe/WebCheckout.pm
Criterion Covered Total %
condition 13 33 39.3


and 3 conditions

line !l l&&!r l&&r condition
35 0 0 5 $attrs{'cancel-url'} and $attrs{'success-url'}
40 0 5 0 $attrs{'api-public'} and not $attrs{'api-public'} =~ /^pk_/
42 0 5 0 $attrs{'api-public'} and $attrs{'api-public'} =~ /^sk_/
64 0 0 4 $product{'price'} > 0 and not $product{'price'} =~ /\./
68 0 0 4 $product{'qty'} > 0 and not $product{'qty'} =~ /\./
270 0 0 0 $key and $session

or 2 conditions

line l !l condition
29 0 5 $attrs{'currency'} //= 'GBP'
38 1 4 $attrs{'url'} //= 'https://api.stripe.com/v1/checkout/sessions'
150 3 1 $self->{'reference'} //= 'Business::Stripe::WebCheckout'

or 3 conditions

line l !l&&r !l&&!r condition
33 5 0 0 $attrs{'cancel-url'} //= "$ENV{'REQUEST_SCHEME'}://$ENV{'HTTP_HOST'}$ENV{'SCRIPT_NAME'}"
34 5 0 0 $attrs{'success-url'} //= "$ENV{'REQUEST_SCHEME'}://$ENV{'HTTP_HOST'}$ENV{'SCRIPT_NAME'}"
258 2 0 0 $result{'message'} || "$result{'api-key'}:$result{'session'}"