Branch Coverage

blib/lib/Hypothesis/API.pm
Criterion Covered Total %
branch 0 114 0.0


line true false branch
190 0 0 if (ref $payload ne 'HASH')
194 0 0 unless (exists $payload->{'uri'})
202 0 0 unless (exists $payload->{'permissions'})
210 0 0 unless (exists $payload->{'document'})
213 0 0 unless (exists $payload->{'text'})
216 0 0 unless (exists $payload->{'tags'})
219 0 0 unless (exists $payload->{'target'})
233 0 0 if ($response->code == 200) { }
235 0 0 unless ($json_content)
238 0 0 if (exists $json_content->{'id'}) { }
261 0 0 unless (defined $id)
275 0 0 if ($response->code != 500) { }
277 0 0 unless ($json_content)
284 0 0 if ($content_type eq 'HASH') { }
285 0 0 if (defined $json_content->{'deleted'}) { }
286 0 0 if ($json_content->{'deleted'}) { }
0 0 elsif (not $json_content->{'deleted'}) { }
321 0 0 if (exists $cookies{'Set-Cookie3: XSRF-TOKEN'}) { }
367 0 0 unless (defined $id)
373 0 0 if ($response->code != 500) { }
375 0 0 unless ($json_content)
382 0 0 if ($content_type eq 'HASH') { }
383 0 0 if (defined $json_content->{'id'}) { }
0 0 elsif (defined $json_content->{'rows'}) { }
437 0 0 unless (defined $query)
440 0 0 if (defined $query->{'uri'})
445 0 0 unless (defined $page_size)
449 0 0 unless (defined $query->{'limit'})
462 0 0 if defined $limit_orig and $num_returned >= $limit_orig
463 0 0 if (@annotation_buff == 0 and not $done)
464 0 0 if $VERB > 0
468 0 0 if $VERB > 1
471 0 0 if ($response->code != 500) { }
473 0 0 unless ($json_content)
480 0 0 if (defined $limit_orig and $limit_orig eq 'Infinity')
485 0 0 if (not defined $limit_orig or $json_content->{'total'} < $limit_orig)
490 0 0 if $VERB > 1
492 0 0 if (defined $last_id)
505 0 0 if $VERB > 0
507 0 0 if (@annotation_buff == 0)
512 0 0 if (@annotation_buff)
517 0 0 if $VERB > 5
519 0 0 if $done or @annotation_buff == 0
550 0 0 unless (defined $query)
553 0 0 if (defined $query->{'uri'})
558 0 0 unless (defined $page_size)
562 0 0 unless (defined $query->{'limit'})
578 0 0 if $VERB > 1
581 0 0 if ($response->code != 500) { }
583 0 0 unless ($json_content)
609 0 0 unless (defined $id)
623 0 0 if ($response->code != 500) { }
625 0 0 unless ($json_content)
632 0 0 if ($content_type eq 'HASH') { }
633 0 0 if (defined $json_content->{'updated'}) { }
634 0 0 if ($json_content->{'updated'}) { }
0 0 elsif (not $json_content->{'updated'}) { }