Branch Coverage

blib/lib/Net/SPDY/Framer.pm
Criterion Covered Total %
branch 80 108 74.0


line true false branch
147 0 27 unless defined $value
148 4 23 if ref $value and ref $value eq 'ARRAY'
178 20 116 if scalar @values > 1
200 0 194 if $!{'EINTR'}
201 0 194 unless defined $ret
202 0 194 if $ret == 0
271 0 12 unless $frame{'version'} == 3
326 0 9 unless $frame{'version'} == 3
370 0 8 unless $frame{'version'} == 3
372 0 8 unless $frame{'length'} == 8
429 0 11 unless $frame{'version'} == 3
482 0 7 unless $frame{'version'} == 3
484 0 7 unless $frame{'length'} == 4
526 0 6 unless $frame{'version'} == 3
528 0 6 unless $frame{'length'} == 8
576 0 5 unless $frame{'version'} == 3
622 0 3 unless $frame{'version'} == 3
624 0 3 unless $frame{'length'} == 8
674 0 2 unless $frame{'version'} == 1
725 18 2 if ($frame{'type'})
726 3 15 if ($frame{'type'} == 1) { }
1 14 elsif ($frame{'type'} == 2) { }
1 13 elsif ($frame{'type'} == 3) { }
5 8 elsif ($frame{'type'} == 4) { }
2 6 elsif ($frame{'type'} == 6) { }
2 4 elsif ($frame{'type'} == 7) { }
2 2 elsif ($frame{'type'} == 8) { }
1 1 elsif ($frame{'type'} == 9) { }
1 0 elsif ($frame{'type'} == 10) { }
748 18 0 unless exists $frame{'control'}
749 17 1 unless exists $frame{'version'}
750 10 8 unless exists $frame{'flags'}
755 18 2 $frame{'control'} ? :
0 20 unless $$self{'socket'}->print(pack('N', $frame{'control'} ? $frame{'control'} << 31 | $frame{'version'} << 16 | $frame{'type'} : $frame{'stream_id'}))
763 0 20 unless $$self{'socket'}->print(pack('N', $frame{'flags'} << 24 | $frame{'length'}))
768 19 1 if ($frame{'data'})
769 0 19 unless $$self{'socket'}->print($frame{'data'})
787 0 65 unless $$self{'socket'}
789 0 65 unless defined $buf
790 0 65 if $buf eq ''
794 63 2 if ($frame{'control'}) { }
802 0 65 unless $buf = reliable_read($$self{'socket'}, 4)
808 1 64 unless ($frame{'length'})
812 0 64 unless $frame{'data'} = reliable_read($$self{'socket'}, $frame{'length'})
816 63 1 if ($frame{'control'})
817 12 51 if ($frame{'type'} == 1) { }
9 42 elsif ($frame{'type'} == 2) { }
8 34 elsif ($frame{'type'} == 3) { }
11 23 elsif ($frame{'type'} == 4) { }
7 16 elsif ($frame{'type'} == 6) { }
6 10 elsif ($frame{'type'} == 7) { }
5 5 elsif ($frame{'type'} == 8) { }
3 2 elsif ($frame{'type'} == 9) { }
2 0 elsif ($frame{'type'} == 10) { }