Branch Coverage

blib/lib/Protocol/SPDY/Frame/Control.pm
Criterion Covered Total %
branch 9 14 64.2


line true false branch
79 0 33 unless $_[0]{'version'}
117 21 0 $self->is_control ? :
2 19 $self->fin ? :
0 21 $self->uni ? :
0 21 $self->compress ? :
151 10 24 exists {CREDENTIAL => '10', GOAWAY => '7', HEADERS => '8', NOOP => '5', PING => '6', RST_STREAM => '3', SETTINGS => '4', SYN_REPLY => '2', SYN_STREAM => '1', WINDOW_UPDATE => '9'}->{$type} ? :
0 34 unless my $name = exists {CREDENTIAL => '10', GOAWAY => '7', HEADERS => '8', NOOP => '5', PING => '6', RST_STREAM => '3', SETTINGS => '4', SYN_REPLY => '2', SYN_STREAM => '1', WINDOW_UPDATE => '9'}->{$type} ? $type : {1 => 'SYN_STREAM', 10 => 'CREDENTIAL', 2 => 'SYN_REPLY', 3 => 'RST_STREAM', 4 => 'SETTINGS', 5 => 'NOOP', 6 => 'PING', 7 => 'GOAWAY', 8 => 'HEADERS', 9 => 'WINDOW_UPDATE'}->{$type}