Condition Coverage

blib/lib/Cloudinary.pm
Criterion Covered Total %
condition 16 28 57.1


or 2 conditions

line l !l condition
62 0 7 $args->{'resource_type'} ||= 'image'
96 0 2 $args->{'resource_type'} ||= 'image'
103 0 2 $args->{'type'} || 'upload'
121 2 0 $_[1]->res->json || {'error', $_[1]->error || 'Unknown error'}
126 0 0 $res->{'message'} || 'Unknown error'
150 4 2 shift() || {}
161 0 6 $args->{'resource_type'} || 'image'
1 5 $args->{'type'} || 'upload'

or 3 conditions

line l !l&&r !l&&!r condition
63 3 4 0 $args->{'timestamp'} ||= time
72 0 4 0 $args->{'filename'} || basename($args->{'file'}->path)
103 1 1 0 $args->{'timestamp'} || time
160 2 4 0 $SHORTER{$_} || $_