Condition Coverage

blib/lib/Mojolicious/Plugin/StripePayment.pm
Criterion Covered Total %
condition 30 74 40.5


and 3 conditions

line !l l&&!r l&&r condition
318 1 0 0 defined $form{'statement_descriptor'} and 22 < length $form{'statement_descriptor'}
351 5 0 0 defined $form{'statement_descriptor'} and 22 < length $form{'statement_descriptor'}
390 3 0 0 $c->param('token') and $c->req->url->userinfo eq "${secret}:"
407 1 0 0 $c->param('token') and $c->req->url->userinfo eq "${secret}:"
422 0 0 0 $c->param('token') and $c->req->url->userinfo eq "${secret}:"

or 2 conditions

line l !l condition
115 0 1 $ENV{'MOJO_STRIPE_DEBUG'} || 0
344 0 5 $c->param('description') || ''
395 3 0 $c->param('capture') // 1
397 0 3 $c->param('description') || ''
440 0 0 $$args{'id'} || 'invalid'
450 0 4 $tx->error || {}
452 0 4 $$error{'message'} || $$error{'code'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
342 0 4 1 $form{'amount'} ||= $c->param('amount')
343 0 5 0 $form{'currency'} ||= $self->currency_code
346 0 2 0 $form{'receipt_email'} ||= $c->param('stripeEmail')
348 0 3 2 $$args{'token'} || $c->param('stripeToken')
0 3 2 $form{'source'} ||= $$args{'token'} || $c->param('stripeToken')
349 1 4 0 $form{'capture'} //= $self->auto_capture
394 0 3 0 local $$MOCKED_SUCCESSFUL_RESPONSE{'amount'} //= $c->param('amount')
395 0 3 0 local $$MOCKED_SUCCESSFUL_RESPONSE{'captured'} //= $c->param('capture') // 1 ? \1 : \0
396 0 3 0 local $$MOCKED_SUCCESSFUL_RESPONSE{'currency'} //= lc $c->param('currency')
397 0 0 3 local $$MOCKED_SUCCESSFUL_RESPONSE{'description'} //= $c->param('description') || ''
398 0 3 0 local $$MOCKED_SUCCESSFUL_RESPONSE{'livemode'} //= $secret =~ /test/ ? \0 : \1
399 0 2 1 local $$MOCKED_SUCCESSFUL_RESPONSE{'receipt_email'} //= $c->param('receipt_email')
411 0 0 1 local $$MOCKED_SUCCESSFUL_RESPONSE{'amount'} //= $c->param('amount')
413 0 1 0 local $$MOCKED_SUCCESSFUL_RESPONSE{'livemode'} //= $secret =~ /test/ ? \0 : \1
414 0 0 1 local $$MOCKED_SUCCESSFUL_RESPONSE{'receipt_email'} //= $c->param('receipt_email')