Condition Coverage

blib/lib/Plack/Middleware/Auth/Form.pm
Criterion Covered Total %
condition 13 25 52.0


and 3 conditions

line !l l&&!r l&&r condition
19 12 0 0 &Scalar::Util::blessed($auth) and $auth->can('authenticate')
48 15 1 0 $self->secure and !defined($$env{'psgi.url_scheme'}) || lc $$env{'psgi.url_scheme'} ne 'https'
0 1 0 $self->secure and !defined($$env{'psgi.url_scheme'}) || lc $$env{'psgi.url_scheme'} ne 'https' and !defined($$env{'HTTP_X_FORWARDED_PROTO'}) || lc $$env{'HTTP_X_FORWARDED_PROTO'} ne 'https'

or 2 conditions

line l !l condition
100 3 2 $$env{'HTTP_REFERER'} || '/'
148 2 1 $self->after_logout || '/'

or 3 conditions

line l !l&&r !l&&!r condition
48 0 1 0 !defined($$env{'psgi.url_scheme'}) || lc $$env{'psgi.url_scheme'} ne 'https'
1 0 0 !defined($$env{'HTTP_X_FORWARDED_PROTO'}) || lc $$env{'HTTP_X_FORWARDED_PROTO'} ne 'https'
52 0 1 0 $$env{'HTTP_X_FORWARDED_FOR'} || $$env{'HTTP_X_HOST'} || $$env{'SERVER_NAME'}
100 3 5 0 $$env{'psgix.session'}{'redir_to'} ||= $$env{'HTTP_REFERER'} || '/'