Condition Coverage

blib/lib/Mojolicious/Plugin/WebFinger.pm
Criterion Covered Total %
condition 25 73 34.2


and 3 conditions

line !l l&&!r l&&r condition
52 1 0 0 $param->{'expires'} and $param->{'expires'} =~ /^\d+$/u
75 5 0 0 $param->{'secure'} and not $c->req->is_secure
118 3 0 0 $xrd->expires && $seconds
187 2 0 0 $_[1] and not ref $_[1]
2 0 0 $_[1] and not ref $_[1] and index($_[1], '-') != 0
199 2 0 0 @_ and not defined $_[-1]
203 2 0 0 defined $_[-1] and index($_[-1], '-') == 0
208 1 1 0 $host and $host =~ /(?:gmail|yahoo|mozilla)\.(?:com|org|net)$/iu
213 2 0 0 defined $_[-1] && ref $_[-1] eq 'CODE'
217 2 0 0 $_[0] and ref $_[0]
2 0 0 $_[0] and ref $_[0] and ref $_[0] eq 'HASH'
271 0 0 0 $host and $res
498 3 4 0 index($res, 'acct:') != 0 and $res =~ /^[^:]+:/u

or 2 conditions

line l !l condition
29 1 0 $param ||= {}
92 0 5 $c->stash('format') or scalar $c->param('format')
100 2 0 $c->req->url->base->host || 'localhost'
225 1 0 $c->req->url->base->host || 'localhost'
522 7 0 $host || $c->req->url->base->host || 'localhost'

or 3 conditions

line l !l&&r !l&&!r condition
85 0 0 5 not $res or $res eq '{uri}'
100 3 2 0 $host ||= $c->req->url->base->host || 'localhost'
225 1 1 0 not $host or $host eq ($c->req->url->base->host || 'localhost')
261 0 0 0 $headers ||= 'Mojo::Headers'->new
0 0 0 $cb or wantarray
275 0 0 0 exists $flag{'-secure'} or exists $flag{'-modern'}
361 0 0 0 not $xrd or $xrd->expired
468 5 0 0 $res ||= $nres