Branch Coverage

blib/lib/Crypt/RFC8188.pm
Criterion Covered Total %
branch 33 36 91.6


line true false branch
21 1 23 unless $salt and length $salt == 16
23 3 20 if ($dh) { }
24 1 2 unless $private_key
27 1 1 $mode eq 'encrypt' ? :
34 1 21 unless $secret
38 19 2 unless $dh
39 2 19 if ($auth_secret)
54 0 6 if $rs > $MAX_RECORD_SIZE
59 1 5 if $rs <= $overhead
69 5 0 $i + $chunk_size >= $end ? :
76 1 4 if (not $keyid and $private_key) { }
81 1 4 if length $keyid > 255
94 1 8 if $rs <= $overhead
97 1 7 if ($private_key and not $dh) { }
116 1 7 unless defined $data
119 1 6 unless length $data
120 1 0 unless $last or $data =~ s/\x01$//
121 1 4 if $last and not $data =~ s/\x02$//