Branch Coverage

blib/lib/ZM/Session.pm
Criterion Covered Total %
branch 0 78 0.0


line true false branch
16 0 0 unless (defined $$cl{'lifetime'})
20 0 0 unless (defined $$cl{'path'})
25 0 0 if (not defined $$cl{'SID'} or length $$cl{'SID'} == 0)
29 0 0 if ($no_cookie eq '')
36 0 0 if $print_content ne 'nocontent'
39 0 0 if $double_enter eq ''
41 0 0 if (-e $cl->getfile)
49 0 0 if (defined $$cl{'check_ip'})
65 0 0 unless $f =~ /^zm_sess_/
66 0 0 if ((stat $$cl{'path'} . $f)[9] + $$cl{'lifetime'} < time)
77 0 0 unless ($cl->have_id)
81 0 0 if (-e $cl->getfile)
86 0 0 if (defined $$cl{'id'})
96 0 0 unless (defined $id)
101 0 0 if (-e $file)
111 0 0 unless (defined $$cl{'SID'})
121 0 0 if (defined $path)
128 0 0 if (defined $newid)
132 0 0 unless ($cl->have_id)
148 0 0 unless ($cl->have_id)
152 0 0 if (-e $cl->getfile)
158 0 0 if ($line[0] eq $name)
172 0 0 unless ($cl->have_id)
176 0 0 if (-e $cl->getfile)
194 0 0 unless ($cl->have_id)
198 0 0 unless ($cl->is_set($name))
218 0 0 unless ($cl->have_id)
222 0 0 if (-e $cl->getfile)
237 0 0 unless ($cl->have_id)
241 0 0 if (-e $cl->getfile) { }
246 0 0 if ($l =~ /^$name=(.*?)\n/i)
264 0 0 unless ($cl->have_id)
265 0 0 if (-e $cl->getfile)
272 0 0 if $l =~ s/^$name=(.*?)\n/$name=$value\n/sig
276 0 0 unless ($flag)
294 0 0 if ($COOKIES{'SID'} ne '')
300 0 0 if ($COOKIES{'SID'} eq '' or not $cl->check_ip_addr)
322 0 0 unless defined $$cl{'check_ip'}
326 0 0 if $cl->get('SID_IP') ne $ENV{'REMOTE_ADDR'}