Condition Coverage

blib/lib/CGI/Application/Plugin/Session.pm
Criterion Covered Total %
condition 30 49 61.2


and 3 conditions

line !l l&&!r l&&r condition
42 7 22 0 builtin::blessed($params[1]) and not $params[1]->isa("CGI")
56 15 2 11 $self->{'__CAP__SESSION_CONFIG'}{'DEFAULT_EXPIRY'} and $self->{'__CAP__SESSION_OBJ'}->is_new
135 18 5 1 exists $options{'-name'} and $options{'-name'} ne $self->session->name
144 11 8 5 defined $self->session->expires and not defined $options{'-expires'}
265 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
51 1 0 'CGI::Session'->errstr || 'Unknown'
207 3 0 $headers{'-cookie'} || []

or 3 conditions

line l !l&&r !l&&!r condition
44 0 0 0 $params[1]->cookie($name) || $params[1]->param($name)
65 16 10 2 not defined $self->{'__CAP__SESSION_CONFIG'}{'SEND_COOKIE'} or $self->{'__CAP__SESSION_CONFIG'}{'SEND_COOKIE'}
69 16 5 5 not $cid or $cid ne $self->{'__CAP__SESSION_OBJ'}->id
21 2 3 not $cid or $cid ne $self->{'__CAP__SESSION_OBJ'}->id or $self->{'__CAP__SESSION_OBJ'}->expire
142 6 18 0 $options{'-name'} ||= $self->session->name
143 5 19 0 $options{'-value'} ||= $self->session->id
196 0 3 0 $options{'name'} ||= $session->name
210 2 1 2 ref $cookie ne "CGI::Cookie" or $cookie->name ne $session->name