| blib/lib/Test/Async/HTTP.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 22 | 24 | 91.6 |
| line | true | false | branch |
|---|---|---|---|
| 70 | 2 | 9 | unless (exists $args{'request'}) |
| 74 | 1 | 1 | if exists $args{'content'} |
| 80 | 1 | 10 | $args{'on_body_write'} ? : |
| 88 | 1 | 10 | if (my $timeout = delete $args{'timeout'}) |
| 98 | 0 | 11 | if keys %args |
| 160 | 1 | 11 | unless my $pending = shift @{$$self{'next'};} |
| 162 | 3 | 8 | if (defined $pending->content) |
| 212 | 4 | 2 | if (not ref $content) { } |
| 1 | 1 | elsif (ref $content eq 'CODE') { } | |
| 1 | 0 | elsif ($content->blessed and $content->isa('Future')) { } | |
| 214 | 1 | 3 | if $self->on_write |
| 245 | 1 | 8 | if ($self->on_header) { } |