Condition Coverage

lib/Cloudinary.pm
Criterion Covered Total %
condition 16 26 61.5


or 2 conditions

line l !l condition
232 0 5 $$args{'resource_type'} ||= 'image'
290 0 2 $$args{'resource_type'} ||= 'image'
292 0 2 $$args{'type'} || 'upload'
319 2 0 $tx->res->json || {'error', $tx->error || 'Unknown error'}
384 4 2 shift() || {}
395 0 6 $$args{'resource_type'} || 'image'
1 5 $$args{'type'} || 'upload'

or 3 conditions

line l !l&&r !l&&!r condition
233 3 2 0 $$args{'timestamp'} ||= time
241 0 2 0 $$args{'filename'} || basename($$args{'file'}->path)
292 1 1 0 $$args{'timestamp'} || time
390 2 0 4 $SHORTER{$_} || $_