Branch Coverage

blib/lib/WWW/Zotero.pm
Criterion Covered Total %
branch 0 112 0.0


line true false branch
109 0 0 if (defined $self->key)
115 0 0 if (defined $self->modified_since)
140 0 0 if @params > 0
143 0 0 if ($self->sleep > 0)
160 0 0 if ($backoff > 0) { }
0 0 elsif ($code eq '429' or $code eq '503') { }
172 0 0 unless $code eq '200'
189 0 0 unless defined $username
195 0 0 unless $response->responseCode eq '200'
199 0 0 if ($content =~ /profileUserID:\s*(\d+)/) { }
217 0 0 unless $response
232 0 0 unless $response
245 0 0 unless defined $itemType
249 0 0 unless $response
262 0 0 unless defined $itemType
266 0 0 unless $response
281 0 0 unless $response
294 0 0 unless defined $itemType
298 0 0 unless $response
311 0 0 unless defined $key
313 0 0 unless defined $key
317 0 0 unless $response
330 0 0 unless defined $userID
334 0 0 unless $response
412 0 0 unless defined $userID or defined $groupID
414 0 0 defined $userID ? :
415 0 0 defined $userID ? :
424 0 0 if exists $options{'format'} and $options{'format'} eq 'perl'
426 0 0 unless defined $options{'limit'}
428 0 0 if ($generator) { }
430 0 0 unless defined $options{'start'}
436 0 0 unless defined $response
437 0 0 if $response->{'total'} == 0
438 0 0 if $options{'start'} + $idx + 1 > $response->{'total'}
440 0 0 unless (defined $response->{'results'}[$idx])
446 0 0 unless defined $response
465 0 0 unless defined $response
470 0 0 if defined $total
471 0 0 if defined $link
475 0 0 unless $results
477 0 0 if (not defined $options{'format'} or $options{'format'} eq 'perl')
527 0 0 unless defined $key
533 0 0 unless defined $result
552 0 0 unless defined $key
558 0 0 unless defined $result
577 0 0 unless defined $key
583 0 0 unless defined $result
604 0 0 defined $tag ? :
653 0 0 unless defined $key
659 0 0 unless defined $result
678 0 0 unless defined $key
699 0 0 unless defined $key
720 0 0 unless defined $key
741 0 0 unless defined $key
777 0 0 unless defined $key
783 0 0 unless defined $result