Branch Coverage

blib/lib/Protocol/TLS/Handshake.pm
Criterion Covered Total %
branch 19 48 39.5


line true false branch
32 0 11 if length($$buf_ref) - $buf_offset < 4
37 0 11 if $h_len > $length - 4
40 0 11 unless (exists $handshake_types{$type})
48 0 11 unless defined $len
51 11 0 if $type != 0
64 11 0 if $type != 0
85 0 1 if ($sess_l > 32)
92 0 1 if (not $ciphers_l or $ciphers_l % 2)
108 0 1 unless (@compr)
117 1 0 if ($length > $offset)
123 0 1 unless defined $len
137 1 0 $res ? :
144 0 3 if (exists $data_ref->{'extensions'})
172 0 3 if ($length > $offset)
178 0 0 unless defined $len
192 3 0 $res ? :
199 0 1 if (exists $data_ref->{'extensions'})
216 0 2 if ($list_len > $length - $offset)
225 0 2 if ($cert_len > $length - $offset - 3)
278 0 0 unless $dn
283 0 0 if ($offset != $length)
322 0 0 unless (defined $encoded_pkey and length $encoded_pkey == $length - 2)
331 0 0 unless ($ctx->validate_client_key($encoded_pkey))
350 3 0 $ctx->validate_finished($message) ? :