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) { }
244 2 29 unless defined $data
249 4 27 if (defined $expires) { }
250 2 2 if $expires < time
253 14 13 $self->has_default_duration ? :
258 14 17 if ($self->protocol_version == 1) { }
276 1 30 if $@
279 14 16 if ($self->protocol_version == 1) { }
304 2 41 unless length $string
309 2 39 unless defined $ciphertext and length $ciphertext
310 2 37 unless defined $mac and length $mac
311 17 20 unless defined $version
314 17 20 if ($version == 1) { }
323 28 9 unless $self->old_secrets
330 24 26 if defined $check_mac and length $check_mac and &equals($check_mac, $mac)
340 13 24 unless defined $key
343 4 20 if length $expires and $expires < time
352 0 20 if $@