Branch Coverage

lib/Hypersonic/Protocol/WebSocket/Frame.pm
Criterion Covered Total %
branch 34 38 89.4


line true false branch
666 1 17 ref $data ? :
672 16 2 $fin ? :
675 8 10 $mask ? :
677 16 2 if ($len <= 125) { }
1 1 elsif ($len <= 65535) { }
691 8 10 if ($mask)
710 2 18 if @bytes < 2
715 17 1 $bytes[0] & 128 ? :
720 8 10 $bytes[1] & 128 ? :
725 1 17 if ($len == 126) { }
1 16 elsif ($len == 127) { }
726 0 1 if @bytes < 4
730 0 1 if @bytes < 10
741 8 10 if ($frame{'masked'})
742 0 8 if @bytes < $pos + 4
748 1 17 if @bytes < $pos + $len
753 8 9 if ($frame{'masked'})
793 3 0 if (@bytes >= 2)
795 2 1 if (@bytes > 2)