Condition Coverage

blib/lib/Net/MyCommerce/API/Client.pm
Criterion Covered Total %
condition 12 27 44.4


and 3 conditions

line !l l&&!r l&&r condition
113 2 0 0 $$self{'credentials'}{'id'} and $$self{'credentials'}{'secret'}

or 2 conditions

line l !l condition
51 1 2 $args{'timeout'} ||= 60
82 0 2 $opts{'prefix'} || $$self{'prefix'} || ''
84 2 0 $opts{'params'} || $$self{'params'} || {}
112 0 2 $opts{'headers'} || $$self{'headers'} || {}
133 2 0 $$self{'method'} || 'GET'
158 2 0 $$content{'error'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
83 0 2 0 $opts{'path'} || $$self{'path'}
133 0 2 0 $opts{'method'} ||= $$self{'method'} || 'GET'
161 0 2 0 $error ||= $errmsg
164 2 0 0 $error ||= 'status code ' . $response->code