Condition Coverage

lib/ImgurAPI/Client.pm
Criterion Covered Total %
condition 7 161 4.3


and 3 conditions

line !l l&&!r l&&r condition
66 0 0 0 $http_method =~ /^GET|DELETE$/ and $data
0 0 0 $http_method =~ /^GET|DELETE$/ and $data and ref $data eq "HASH"
86 0 0 0 $val && $val =~ /^\d+$/

or 2 conditions

line l !l condition
27 1 4 shift() // {}
40 1 4 $args->{'format_type'} || 'json'
51 0 0 $http_method // "GET"
60 0 0 $self->{'access_token'} // die("Missing required access_token")
72 0 0 $hdr // {}
74 0 0 $hdr // {}
79 0 0 $debug // 0
107 0 0 shift() // {}
174 2 2 $self->{'oauth_cb_state'} // ""
248 0 0 shift() // {}
249 0 0 $opts->{'page'} // 0
256 0 0 shift() // {}
257 0 0 $opts->{'page'} // 0
347 0 0 shift() // {}
348 0 0 $opts->{'sort'} // "newest"
349 0 0 $opts->{'page'} // 0
356 0 0 shift() // {}
357 0 0 $opts->{'sort'} // "newest"
358 0 0 $opts->{'page'} // 0
372 0 0 shift() // {}
373 0 0 $opts->{'sort'} // "newest"
374 0 0 $opts->{'page'} // 0
381 0 0 shift() // {}
382 0 0 $opts->{'sort'} // "newest"
383 0 0 $opts->{'page'} // 0
410 0 0 shift() // {}
411 0 0 $opts->{'page'} // 0
418 0 0 shift() // {}
419 0 0 $opts->{'page'} // 0
426 0 0 shift() // {}
427 0 0 $opts->{'new'} // 1
440 0 0 shift() // {}
455 0 0 shift() // {}
456 0 0 $opts->{'page'} // 0
493 0 0 shift() // {}
557 0 0 shift() // {}
639 0 0 shift() // {}
643 0 0 $opts->{'section'} // "hot"
644 0 0 $opts->{'sort'} // "viral"
645 0 0 $opts->{'page'} // 0
646 0 0 $opts->{'window'} // "day"
647 0 0 $opts->{'show_viral'} // 1
648 0 0 $opts->{'album_previews'} // 1
682 0 0 shift() // {}
683 0 0 $opts->{'sort'} // "best"
690 0 0 shift() // {}
733 0 0 shift() // {}
734 0 0 $opts->{'q'} // ""
735 0 0 $opts->{'adv'} // 0
736 0 0 $opts->{'sort'} // "time"
737 0 0 $opts->{'window'} // "all"
738 0 0 $opts->{'page'} // 0
759 0 0 shift() // {}
783 0 0 shift() // {}
806 0 0 shift() // {}
810 0 0 $opts->{'sort'} // "time"
811 0 0 $opts->{'window'} // "week"
812 0 0 $opts->{'page'} // 0
828 0 0 shift() // {}
829 0 0 $opts->{'sort'} // "viral"
830 0 0 $opts->{'page'} // 0
831 0 0 $opts->{'window'} // "week"
858 0 0 shift() // {}
890 0 0 shift() // {}

or 3 conditions

line l !l&&r !l&&!r condition
40 0 5 0 $args->{'user_agent'} || "ImgurAPI::Client/$VERSION"
79 0 0 0 $ENV{'DEBUG'} or $debug // 0
109 0 0 0 $opts->{'refresh_token'} || $self->{'refresh_token'}
110 0 0 0 $opts->{'client_id'} || $self->{'client_id'}
111 0 0 0 $opts->{'client_secret'} || $self->{'client_secret'}
278 0 0 0 $self->{'response'}->code != 201 or $self->{'response'}{'_msg'} ne "Created"
500 0 0 0 $opt eq 'ids' || $opt eq 'deletehashes'
563 0 0 0 $opt eq 'ids' || $opt eq 'deletehashes'