Branch Coverage

blib/lib/MVC/Neaf/X/Session/File.pm
Criterion Covered Total %
branch 19 32 59.3


line true false branch
67 1 2 unless $self->{'dir'} and -d $self->{'dir'}
83 2 0 $self->{'session_ttl'} ? :
102 1 2 $raw ? :
116 0 1 unless (unlink $self->get_file_name($id))
117 0 0 if $!{'ENOENT'} or $!{'EPERM'} and $^O eq "MSWin32"
135 1 2 unless ($ok)
136 1 0 if $!{'ENOENT'}
140 0 2 unless flock $fd, 1
146 1 1 if ($expire and $expire < time)
147 0 1 if $^O eq "MSWin32"
154 0 1 unless defined $raw
171 0 2 unless open my $fd, ">>", $fname
174 0 2 unless flock $fd, 2
180 0 2 unless print $fd $raw
183 0 2 unless close $fd
199 0 6 unless $self->{'dir'}