Branch Coverage

blib/lib/Parse/SNI.pm
Criterion Covered Total %
branch 21 38 55.2


line true false branch
57 0 11 if @data < 5
59 0 11 if ($data[0] & 128 and $data[2] == 1)
63 1 10 if ($data[0] != 22)
70 0 10 if ($tls_version_major < 3)
75 5 5 if $len > @data
78 0 5 if $pos + 1 > @data
79 0 5 if $data[$pos] != 1
83 0 5 if $pos + 1 > @data
87 0 5 if $pos + 2 > @data
92 0 5 if $pos + 1 > @data
97 0 0 if ($pos == @data and $tls_version_major == 3 and $tls_version_minor == 0)
101 0 5 if $pos + 2 > @data
106 0 5 if $pos + $len > @data
112 5 18 if ($data[$pos] == 0 and $data[$pos + 1] == 0)
113 0 5 if $pos + 4 + $ext_len > $end
120 0 5 if $pos + 3 + $len > $end
122 5 0 if ($data[$pos] == 0)
124 1 4 wantarray ? :
134 0 0 if $pos != $end