Condition Coverage

blib/lib/Mojolicious/Plugin/ClosedRedirect.pm
Criterion Covered Total %
condition 12 17 70.5


and 3 conditions

line !l l&&!r l&&r condition
26 4 0 2 $param->{'secrets'} and ref $param->{'secrets'} eq 'ARRAY'
73 0 0 2 $redirect_parts->[0] and $_ eq $redirect_parts->[0]

or 2 conditions

line l !l condition
18 6 0 $param ||= {}
92 21 6 $method //= ''
170 1 9 $err //= 'Redirect is invalid'
196 10 25 $self->{'secrets'} // []

or 3 conditions

line l !l&&r !l&&!r condition
44 2 13 0 $plugin->secrets->[0] // $app->secrets->[0]