Branch Coverage

File:blib/lib/Class/Shared/Protocol.pm
Coverage:95.7%

line%coveragebranch
31100TFif $CHECK_DEPTH and _too_deep($message)
37100TFunless (defined $frozen)
43100TFif (length $frozen > $MAX_FRAME)
48100TFif (defined $secret)
61100TFif ($@)
70100TFunless defined $message
90100TFunless (defined $written)
9350TFif $!{'EINTR'}
97100TFif ($written == 0)
113100TFunless defined $header
116100TFdefined $secret ? :
118100TFif $length > $room
122100TFunless defined $payload
138100TFif (&Scalar::Util::blessed($fh) and $fh->can("pending") and $fh->pending)
14250TFif not defined $pending and $!{'EINTR'}
143100TFunless defined $pending
144100TFif $pending == 0
149100TFif (defined $timeout)
150100TFif (_can_select($fh)) { }
100TFelsif (not -f $fh) { }
151100TFunless _wait_readable($fh, $timeout)
163100TFunless (defined $got)
164100TFif $!{'EINTR'}
167100TFif ($got == 0)
183100TFunless $^O eq "MSWin32"
18750TFdefined getsockopt($fh, &Socket::SOL_SOCKET(), &Socket::SO_TYPE()) ? :
209100TFif $ready > 0
210100TFunless $ready < 0 and $!{'EINTR'}
213100TFif $left < 0
225100TFif length $$buffer_ref < 4
228100TFdefined $secret ? :
230100TFif $length > $room
233100TFif length $$buffer_ref < 4 + $length
239100TFif defined $error
257100TFunless my $type = &Scalar::Util::reftype($item)
258100TFif $seen{&Scalar::Util::refaddr($item)}++
259100TFif ++$depth > $MAX_DEPTH
261100TFif ($type eq 'ARRAY') { }
100TFelsif ($type eq 'HASH') { }
50TFelsif ($type eq 'REF') { }
282100TFif (defined $secret)
283100TFif length $payload < $DIGEST_SIZE
289100TFunless _authentic($secret, $body, $digest)
293100TFif $check and not &$check($body)
316100TFunless length $expected == length $digest
324100TF$difference == 0 ? :