Condition Coverage

blib/lib/CGI/Application/Plugin/Session.pm
Criterion Covered Total %
condition 20 49 40.8


and 3 conditions

line !l l&&!r l&&r condition
45 5 16 0 &Scalar::Util::blessed($params[1]) and not $params[1]->isa('CGI')
59 7 0 8 $$self{'__CAP__SESSION_CONFIG'}{'DEFAULT_EXPIRY'} and $$self{'__CAP__SESSION_OBJ'}->is_new
138 8 5 1 exists $options{'-name'} and $options{'-name'} ne $self->session->name
147 6 5 3 defined $self->session->expires and not defined $options{'-expires'}
268 0 0 0 $sess_opts and $$sess_opts[4]
0 0 0 $sess_opts and $$sess_opts[4] and ref $$sess_opts[4] eq 'HASH'
0 0 0 $sess_opts and $$sess_opts[4] and ref $$sess_opts[4] eq 'HASH' and exists $$sess_opts[4]{'name'}

or 2 conditions

line l !l condition
54 6 0 'CGI::Session'->errstr || 'Unknown'
210 0 0 $headers{'-cookie'} || []

or 3 conditions

line l !l&&r !l&&!r condition
47 0 0 0 $params[1]->cookie($name) || $params[1]->param($name)
68 6 7 2 not defined $$self{'__CAP__SESSION_CONFIG'}{'SEND_COOKIE'} or $$self{'__CAP__SESSION_CONFIG'}{'SEND_COOKIE'}
72 13 0 0 not $cid or $cid ne $$self{'__CAP__SESSION_OBJ'}->id
13 0 0 not $cid or $cid ne $$self{'__CAP__SESSION_OBJ'}->id or $$self{'__CAP__SESSION_OBJ'}->expire
145 6 8 0 $options{'-name'} ||= $self->session->name
146 5 9 0 $options{'-value'} ||= $self->session->id
199 0 0 0 $options{'name'} ||= $session->name
213 0 0 0 ref $cookie ne 'CGI::Cookie' or $cookie->name ne $session->name