Branch Coverage

blib/lib/Net/Async/DigitalOcean.pm
Criterion Covered Total %
branch 0 122 0.0


line true false branch
14 0 0 if $elf->{'digitalocean_trace'}
16 0 0 if (my $limits = $elf->{'digitalocean_rate_limit'})
24 0 0 $_ =~ /(\d+)\%/ ? :
31 0 0 if ($limits->{'Remaining'} < $threshold)
33 0 0 if $backoff < 0
41 0 0 if $backoff > 0
50 0 0 if $elf->{'digitalocean_trace'}
52 0 0 if ($elf->{'digitalocean_rate_limit_policy'})
53 0 0 if (my $limit = $resp->headers->header("RateLimit-Limit"))
421 0 0 if $a->{'status'} eq "completed"
422 0 0 unless defined $u
431 0 0 if ($b->{'status'} eq 'completed') { }
0 0 elsif ($b->{'status'} eq 'errored') { }
433 0 0 if ($f->is_done) { }
484 0 0 if ($resp->is_success) { }
485 0 0 if ($resp->content_type eq 'application/json') { }
487 0 0 if ($data->{'links'} and my $next = $data->{'links'}{'next'}) { }
489 0 0 unless $next =~ /page=(\d+)/
491 0 0 if ($path =~ /page=/) { }
0 0 elsif ($path =~ /\?/) { }
527 0 0 if ($resp->is_success) { }
528 0 0 if ($resp->content_type eq 'application/json') { }
554 0 0 if ($resp->code == 200) { }
0 0 elsif ($resp->code == 204) { }
0 0 elsif ($resp->code == 202 or $resp->code == 201) { }
0 0 elsif ($resp->is_redirect) { }
0 0 elsif ($resp->code == 429) { }
0 0 elsif (not $resp->is_success) { }
563 0 0 if (not $resp->content) { }
0 0 elsif ($resp->content_type eq 'application/json') { }
569 0 0 if (my $action = $data->{'action'}) { }
0 0 elsif (my $links = $data->{'links'}) { }
0 0 elsif (my $actions = $data->{'actions'}) { }
575 0 0 if (my $res = $data->{'droplet'}) { }
0 0 elsif ($res = $data->{'droplets'}) { }
644 0 0 if ($data->{'message'} =~ /rate-limited.+?(\d+)m(\d+)s/) { }
670 0 0 if (my $json = $resp->content) { }
750 0 0 $headers ? :
869 0 0 if (defined $key and $key eq 'name') { }
902 0 0 if ($key eq 'id') { }
920 0 0 if ($key eq 'volume') { }
0 0 elsif ($key eq 'droplet') { }
955 0 0 if ($key eq 'id') { }
0 0 elsif ($key eq 'name') { }
1110 0 0 if $options{'type'}
1112 0 0 $options{'name'} eq '@' ? :
0 0 if $options{'name'}
1114 0 0 @params ? :
1210 0 0 if ($key eq 'id') { }
1256 0 0 if (defined $f) { }
1301 0 0 if ($key eq 'id') { }
0 0 elsif ($key eq 'tag') { }
1323 0 0 if ($key eq 'id') { }
0 0 elsif ($key eq 'tag') { }
1347 0 0 if ($key eq 'id') { }
0 0 elsif ($key eq 'check_status') { }
1371 0 0 if ($key eq 'id') { }
1638 0 0 if ($key eq 'id') { }
0 0 elsif ($key eq 'tag') { }
1679 0 0 if ($key) { }
1710 0 0 if (defined $f) { }