Condition Coverage

blib/lib/Business/Stripe/WebCheckout.pm
Criterion Covered Total %
condition 0 33 0.0


and 3 conditions

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

or 2 conditions

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

or 3 conditions

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