Branch Coverage

blib/lib/Apache/Session/Store/File.pm
Criterion Covered Total %
branch 16 28 57.1


line true false branch
37 0 2 if (-e $directory . '/' . $$session{'data'}{'_session_id'})
41 0 2 unless sysopen $$self{'fh'}, $directory . '/' . $$session{'data'}{'_session_id'}, O_RDWR() | O_CREAT()
55 0 2 if (not $$self{'opened'})
56 0 0 unless sysopen $$self{'fh'}, $directory . '/' . $$session{'data'}{'_session_id'}, O_RDWR() | O_CREAT()
62 0 2 unless truncate $$self{'fh'}, 0
73 2 1 if (-e $directory . '/' . $$session{'data'}{'_session_id'}) { }
74 2 0 if (not $$self{'opened'}) { }
75 0 2 unless sysopen $$self{'fh'}, $directory . '/' . $$session{'data'}{'_session_id'}, O_RDWR() | O_CREAT()
81 0 0 unless seek $$self{'fh'}, 0, 0
100 1 1 if ($$self{'opened'})
105 2 0 if (-e $directory . '/' . $$session{'data'}{'_session_id'}) { }
106 0 2 unless unlink $directory . '/' . $$session{'data'}{'_session_id'}
117 1 2 if ($$self{'opened'})
126 2 4 if ($$self{'opened'})