Condition Coverage

blib/lib/Mojolicious/Plugin/PayPal.pm
Criterion Covered Total %
condition 15 37 40.5


or 2 conditions

line l !l condition
5 0 2 $ENV{'MOJO_PAYPAL_DEBUG'} || 0
102 1 0 $args->{'description'} || ''
167 0 1 $config->{'base_url'} ||= 'https://api.paypal.com'
200 0 1 $self->{'payments'} ||= {}
218 1 0 $self->param('token') || 'missing'
227 1 0 $self->req->json->{'payer_id'} || 'missing'
277 1 0 eval { do { $tx->res->json } } || {}
279 1 0 $json->{'access_token'} //= ''

or 3 conditions

line l !l&&r !l&&!r condition
21 0 0 1 $args->{'cancel'} //= $c->param('return_url') ? 0 : 1
22 0 1 0 $args->{'token'} ||= $c->param('token')
24 0 1 0 $args->{'payer_id'} ||= $c->param('PayerID')
86 0 2 0 $args->{'redirect_url'} ||= $c->req->url->to_abs
102 0 1 0 $args->{'currency_code'} || $self->currency_code
180 1 1 0 $self->{'transaction_id_map'}{$token} //= $transaction_id
253 0 0 0 $err // $e