Condition Coverage

blib/lib/Mojolicious/Plugin/PayPal.pm
Criterion Covered Total %
condition 14 34 41.1


or 2 conditions

line l !l condition
92 0 2 $ENV{'MOJO_PAYPAL_DEBUG'} || 0
312 1 0 $args->{'description'} || ''
386 0 1 $config->{'base_url'} ||= 'https://api.paypal.com'
416 0 1 $self->{'payments'} ||= {}
431 1 0 $self->param('token') || 'missing'
438 1 0 $self->req->json->{'payer_id'} || 'missing'
479 1 0 eval { do { $tx->res->json } } || {}
481 1 0 $json->{'access_token'} //= ''

or 3 conditions

line l !l&&r !l&&!r condition
190 0 0 1 $args->{'cancel'} //= $c->param('return_url') ? 0 : 1
191 0 1 0 $args->{'token'} ||= $c->param('token')
192 0 1 0 $args->{'payer_id'} ||= $c->param('PayerID')
312 0 1 0 $args->{'currency_code'} || $self->currency_code
398 1 1 0 $self->{'transaction_id_map'}{$token} //= $transaction_id
459 0 0 0 $err // $e