Branch Coverage

blib/lib/Session/Storage/Secure.pm
Criterion Covered Total %
branch 37 38 97.3


line true false branch
191 3 86 if ($pv < 1 or $pv > 2)
204 23 28 if ($pv == 1) { }
243 2 29 unless defined $data
248 4 27 if (defined $expires) { }
249 2 2 if $expires < time
252 14 13 $self->has_default_duration ? :
257 14 17 if ($self->protocol_version == 1) { }
275 1 30 if $@
278 14 16 if ($self->protocol_version == 1) { }
303 2 41 unless length $string
308 2 39 unless defined $ciphertext and length $ciphertext
309 2 37 unless defined $mac and length $mac
310 17 20 unless defined $version
313 17 20 if ($version == 1) { }
322 28 9 unless $self->old_secrets
329 24 26 if defined $check_mac and length $check_mac and &equals($check_mac, $mac)
339 13 24 unless defined $key
342 4 20 if length $expires and $expires < time
351 0 20 if $@