Branch Coverage

blib/lib/Protocol/TLS/Handshake.pm
Criterion Covered Total %
branch 19 44 43.1


line true false branch
32 0 11 if length($$buf_ref) - $buf_offset < 4
37 0 11 if ($length_high * 16777216 + $length_low != $length - 4)
46 0 11 unless (exists $handshake_types{$type})
54 0 11 unless defined $len
57 11 0 if $type != 0
70 11 0 if $type != 0
91 0 1 if ($sess_l > 32)
98 0 1 if (not $ciphers_l or $ciphers_l % 2)
114 0 1 unless (@compr)
123 1 0 if ($length > $offset)
129 0 1 unless defined $len
143 1 0 $res ? :
150 0 3 if (exists $$data_ref{'extensions'})
178 0 3 if ($length > $offset)
184 0 0 unless defined $len
198 3 0 $res ? :
205 0 1 if (exists $$data_ref{'extensions'})
222 0 2 if ($list_len > $length - $offset)
231 0 2 if ($cert_len > $length - $offset - 3)
287 0 0 unless (defined $encoded_pkey and length $encoded_pkey == $length - 2)
296 0 0 unless ($ctx->validate_client_key($encoded_pkey))
315 3 0 $ctx->validate_finished($message) ? :