| line |
true |
false |
branch |
|
28
|
0 |
0 |
unless $self->queue->length |
|
32
|
0 |
0 |
unless 'Mojo::IOLoop'->is_running |
|
39
|
12 |
0 |
unless $self->has_subscribers('empty') |
|
46
|
12 |
0 |
unless $self->has_subscribers('error') |
|
47
|
10 |
2 |
unless $self->has_subscribers('res') |
|
58
|
2 |
13 |
unless ($queue->length) |
|
59
|
2 |
0 |
unless $self->ua->active_conn |
|
62
|
0 |
13 |
if $self->ua->active_conn >= $self->max_conn |
|
64
|
0 |
13 |
if $self->ua->active_host($queue->next->url) >= $self->max_conn_per_host |
|
72
|
0 |
12 |
if ($self->shuffle) |
|
87
|
1 |
12 |
if $job->tx_params |
|
100
|
0 |
13 |
unless ($res->code) |
|
101
|
0 |
0 |
$res->error ? : |
|
129
|
1 |
25 |
unless $res->headers->content_length and $res->body |
|
134
|
23 |
2 |
if ($type and $type =~ qr"^(text|application)/(html|xml|xhtml)"u) |
|
135
|
4 |
19 |
if (my $base_tag = $res->dom->at('base[href]')) |
|
145
|
83 |
3 |
if $_ |
|
152
|
1 |
24 |
if ($type and $type =~ qr"text/css"u) |
|
172
|
0 |
84 |
unless $url |
|
173
|
6 |
78 |
if ref $url |
|
177
|
11 |
73 |
unless $resolved->scheme =~ qr/^(http|https|ftp|ws|wss)$/u |
|
179
|
3 |
70 |
if $params and $method eq 'GET' |
|
184
|
6 |
67 |
if $method |
|
185
|
3 |
70 |
if $params and $method eq 'POST' |
|
205
|
0 |
13 |
if $tx->previous |