Branch Coverage

inc/Test/SharedFork/Store.pm
Criterion Covered Total %
branch 14 30 46.6


line true false branch
26 0 55 unless Storable::nstore_fd($init, $$self{'fh'})
33 55 0 if (my $cb = $$self{'callback_on_open'})
36 0 55 unless sysopen my $fh, $$self{'filename'}, 66
50 0 4412 unless seek $$self{'fh'}, 0, 0
59 0 1212 unless seek $$self{'fh'}, 0, 0
64 0 1212 unless seek $$self{'fh'}, 0, 0
65 0 1212 unless Storable::nstore_fd($dat, $$self{'fh'})
75 0 11248 if ($$self{'pid'} != $$)
77 0 0 if ($$self{'lock'} > 0)
78 0 0 unless flock $$self{'fh'}, 8
88 0 0 if ($$self{'ppid'} eq $$)
103 1988 3636 if ($$store{'lock'}++ == 0)
104 0 1988 unless flock $$store{'fh'}, 2
114 1988 3636 if ($$self{'store'}{'lock'} == 0)
115 0 1988 unless flock $$self{'store'}{'fh'}, 8