Branch Coverage

blib/lib/AnyEvent/HTTP/Spark.pm
Criterion Covered Total %
branch 23 62 37.1


line true false branch
1226 105 36 if ($method ne "list")
1232 36 105 if ($method eq 'list') { }
21 84 elsif ($method eq 'update') { }
36 48 elsif ($method eq 'get') { }
24 24 elsif ($method eq 'delete') { }
24 0 elsif ($method eq 'create') { }
1246 0 0 unless defined $targetId
1252 0 0 unless defined $targetId
1258 0 0 unless defined $targetId
1466 0 0 if ($result)
1471 0 0 if (exists $headers->{'Link'})
1473 0 0 if ($link =~ /^<([^>]+)>;\s+rel="(\w+)"\s*$/su)
1494 0 1 if $@
1510 0 0 unless $result
1515 0 0 if ($self->is_blocking) { }
1519 0 0 if $result or not $response->code == 429 && $count-- > 0
1520 0 0 &looks_like_number(scalar $response->header('Retry-After')) ? :
1524 0 0 if ($count > 0)
1546 0 0 if $result or not +($response->code == 429 || $response->code == 404) && $count-- > 0
1547 0 0 &looks_like_number(scalar $response->header('Retry-After')) ? :
1550 0 0 if ($count > 0)
1610 0 1 if $@
1638 0 1 if (XXX) { }
1 0 elsif (XXX) { }
1681 0 1 if (XXX) { }
1 0 elsif (XXX) { }
1735 0 1 if (XXX) { }
1 0 elsif (XXX) { }
1778 0 1 if (XXX) { }
1 0 elsif (XXX) { }
1822 1 1 if ($response->code == 204) { }