Branch Coverage

blib/lib/TMDB/Session.pm
Criterion Covered Total %
branch 12 38 31.5


line true false branch
99 1 0 if $opts{'lang'}
114 42 33 unless exists $args->{'params'}{'language'}
115 75 0 if ($args->{'params'})
119 0 93 unless defined $args->{'params'}{$param}
128 0 75 if $self->debug
132 0 75 if ($self->debug)
133 0 0 if $response->{'success'}
136 0 0 if $response->{'reason'}
138 0 0 if $response->{'content'}
142 0 75 unless $self->_check_status($response)
143 4 0 if ($args->{'want_headers'} and exists $response->{'headers'})
148 0 71 unless $response->{'content'}
163 0 0 if ($response->{'page'} and $response->{'total_pages'} and $response->{'total_pages'} > $response->{'page'})
170 0 0 if $current_page == $page_limit
175 0 0 if $next_page->{'page'} == $next_page->{'total_pages'}
181 0 15 if wantarray
193 75 0 if ($response->{'success'})
197 0 0 if ($response->{'content'})
210 0 0 if ($ok and $code and $message)