Branch Coverage

blib/lib/Apache2/SSI/Notes.pm
Criterion Covered Total %
branch 27 58 46.5


line true false branch
34 0 63 unless 'Apache2::SSI::SharedMem'->supported
54 0 1 unless $self->write_mem($data)
63 0 1 if ref $code ne 'CODE'
65 1 0 unless scalar @keys
81 0 1 if ($Nice::Try::WANTARRAY) { }
0 1 elsif (defined $Nice::Try::WANTARRAY) { }
0 1 length $@ ? :
0 0 if ($Nice::Try::HAS_CATCH)
0 1 if ($Nice::Try::DIED)
84 0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 $Nice::Try::WANTARRAY ? :
0 0 if (defined $Nice::Try::WANTARRAY and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL'))
87 1 0 if (scalar @keys)
89 0 1 unless $self->write_mem($data)
98 3 3 if (@_)
101 0 3 unless length $key
105 0 6 unless ref $data
106 3 3 unless defined $key
119 0 10 unless defined $len
121 2 8 unless ref $data eq 'HASH'
131 0 1 unless (defined($rv = $shem->remove))
146 0 2 unless length $key
148 0 2 unless $self->write_mem($data)
162 0 1 unless length $key
165 0 1 unless $self->write_mem($data)
175 0 5 if ref $data ne 'HASH'
176 0 5 unless (defined $shem->lock(6))
183 0 5 unless defined $rc