Condition Coverage

blib/lib/Centrifugo/Client.pm
Criterion Covered Total %
condition 12 43 27.9


and 3 conditions

line !l l&&!r l&&r condition
84 1 0 0 $params{'debug'} && !($params{'debug'} =~ /^(0|false|no)$/i)
85 1 0 0 $params{'debug_ws'} && !($params{'debug_ws'} =~ /^(0|false|no)$/i)
92 1 0 0 defined $params{'resubscribe'} && $params{'resubscribe'} =~ /^(0|false|no)$/i
93 1 0 0 $params{'recover'} && !($params{'recover'} =~ /^(0|false|no)$/i)
173 0 0 1 $body and ref $body eq 'HASH'
0 0 1 $body and ref $body eq 'HASH' and $body->{'client'}
233 0 0 0 $this->{'RECOVER'} and $this->{'_channels'}{$channel}{'last'}

or 2 conditions

line l !l condition
86 0 1 delete $params{'authEndpoint'} || '/centrifuge/auth/'
88 0 1 delete $params{'max_alive_period'} || 0
89 0 1 delete $params{'refresh_period'} || 10
90 0 1 delete $params{'retry'} || 1
91 0 1 delete $params{'max_retry'} || 30

or 3 conditions

line l !l&&r !l&&!r condition
122 0 1 0 delete $PARAMS{'uid'} || _generate_random_id()
358 0 0 0 $PARAMS{'uid'} || _generate_random_id()
453 0 0 0 $PARAMS{'uid'} || _generate_random_id()
512 0 0 0 $PARAMS{'uid'} || _generate_random_id()