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
121 1 1 0 @_ and not defined $_[-1]
125 1 0 1 $_[0] and ref $_[0]
1 1 0 $_[0] and ref $_[0] and ref $_[0] eq 'HASH'
130 1 1 0 defined $_[-1] && $_[-1] eq '-secure'
133 1 0 1 ref $_[-1] and ref $_[-1] eq 'CODE'
143 2 0 0 $_[0] and ref $_[0] eq 'ARRAY'
234 9 4 0 @_ and not defined $_[-1]
237 9 4 0 defined $_[-1] and $_[-1] eq '-secure'
240 9 0 4 $_[0] and ref $_[0]
9 4 0 $_[0] and ref $_[0] and ref $_[0] eq 'HASH'
243 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]
160 0 1 0 $headers ||= 'Mojo::Headers'->new
1 0 1 $cb or wantarray