Condition Coverage

blib/lib/Mojolicious/Plugin/HostMeta.pm
Criterion Covered Total %
condition 30 47 63.8


and 3 conditions

line !l l&&!r l&&r condition
40 1 0 0 $param->{'expires'} and $param->{'expires'} =~ /^\d+$/u
120 1 1 0 @_ and not defined $_[-1]
124 1 0 1 $_[0] and ref $_[0]
1 1 0 $_[0] and ref $_[0] and ref $_[0] eq 'HASH'
129 1 1 0 defined $_[-1] && $_[-1] eq '-secure'
132 1 0 1 ref $_[-1] and ref $_[-1] eq 'CODE'
142 2 0 0 $_[0] and ref $_[0] eq 'ARRAY'
233 9 4 0 @_ and not defined $_[-1]
236 9 4 0 defined $_[-1] and $_[-1] eq '-secure'
239 9 0 4 $_[0] and ref $_[0]
9 4 0 $_[0] and ref $_[0] and ref $_[0] eq 'HASH'
242 9 1 3 ref $_[-1] and ref $_[-1] eq 'CODE'

or 2 conditions

line l !l condition
15 1 0 $param ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
69 5 4 2 not $_[0] or ref $_[0]
159 0 1 0 $headers ||= 'Mojo::Headers'->new
1 0 1 $cb or wantarray