Condition Coverage

blib/lib/Centrifugo/Client.pm
Criterion Covered Total %
condition 7 29 24.1


and 2 conditions

line l !l condition
279 0 0 warn "Couldn't connect to $URL : Status=" . $headers->{'Status'} and return

and 3 conditions

line !l l&&!r l&&r condition
79 1 0 0 $params{'debug'} && uc $params{'debug'} ne 'FALSE'
148 0 0 1 $body and ref $body eq 'HASH'
0 0 1 $body and ref $body eq 'HASH' and $body->{'client'}

or 2 conditions

line l !l condition
80 0 1 $params{'authEndpoint'} || '/centrifuge/auth/'
82 0 1 $params{'max_alive_period'} || 0
83 0 1 $params{'refresh_period'} || 10

or 3 conditions

line l !l&&r !l&&!r condition
121 0 1 0 $PARAMS{'uid'} || _generate_random_id()
226 0 0 0 $PARAMS{'uid'} || _generate_random_id()
292 0 0 0 $PARAMS{'uid'} || _generate_random_id()
351 0 0 0 $PARAMS{'uid'} || _generate_random_id()