Condition Coverage

blib/lib/WWW/PayPal/API/Orders.pm
Criterion Covered Total %
condition 8 25 32.0


and 3 conditions

line !l l&&!r l&&r condition
65 0 0 1 $args{'items'} and @{$args{'items'};}
116 0 0 1 ref $args{'purchase_units'} eq "ARRAY" and @{$args{'purchase_units'};}

or 2 conditions

line l !l condition
71 1 0 $i->{'quantity'} // 1
102 0 1 $args{'intent'} // "CAPTURE"
129 0 1 $args{'user_action'} // "PAY_NOW"
161 0 0 $args{'body'} || {}
172 0 0 $args{'body'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
70 1 0 0 $i->{'unit_amount'} // $i->{'price'}
81 1 0 0 $i->{'name'} // croak("item name required")
0 1 0 $i->{'currency_code'} // $currency