line |
true |
false |
branch |
41
|
14 |
0 |
unless ($c->stash('format')) |
53
|
6 |
8 |
if (not defined $xrd && ref $xrd) { } |
|
6 |
2 |
elsif ($c->param('rel')) { } |
56
|
6 |
0 |
if $res |
66
|
7 |
7 |
$c->req->method eq 'HEAD' ? : |
109
|
2 |
0 |
unless (exists $mojo->renderer->helpers->{'new_xrd'}) |
125
|
1 |
0 |
unless $resource->host |
128
|
0 |
0 |
if ($_[0] and ref $_[0] and ref $_[0] eq 'HASH') |
135
|
0 |
0 |
if $prot and $prot eq 'https' |
138
|
0 |
0 |
if ref $_[-1] and ref $_[-1] eq 'CODE' |
142
|
0 |
0 |
if $_[0] and ref $_[0] eq 'ARRAY' |
145
|
0 |
0 |
$secure ? : |
154
|
0 |
0 |
unless $resource->scheme |
160
|
0 |
0 |
unless ($cb) |
167
|
0 |
0 |
unless $xrd_res = $tx->success |
169
|
0 |
0 |
unless ($xrd_res->is_success) |
172
|
0 |
0 |
if $secure |
175
|
0 |
0 |
if $resource->protocol eq 'http' |
187
|
0 |
0 |
unless $xrd_res = $tx->success |
190
|
0 |
0 |
unless $xrd_res->is_success |
194
|
0 |
0 |
unless $xrd = $h->new_xrd($xrd_res->body) |
197
|
0 |
0 |
if $rel |
200
|
0 |
0 |
if wantarray |
217
|
0 |
0 |
if (my $xrd_res = $tx->success) { } |
220
|
0 |
0 |
if ($xrd_res->is_success) |
223
|
0 |
0 |
unless $xrd = $h->new_xrd($xrd_res->body) |
226
|
0 |
0 |
if $rel |
233
|
0 |
0 |
if $secure |
242
|
0 |
0 |
if $resource->protocol eq 'http' |
259
|
0 |
0 |
if (my $xrd_res = (pop())->success) |
262
|
0 |
0 |
unless $xrd = $h->new_xrd($xrd_res->body) |
265
|
0 |
0 |
if $rel |
278
|
0 |
0 |
unless 'Mojo::IOLoop'->is_running |