Branch Coverage

blib/lib/Centrifugo/Client.pm
Criterion Covered Total %
branch 14 56 25.0


line true false branch
105 0 1 unless $PARAMS{'user'}
106 0 1 unless $PARAMS{'timestamp'}
107 0 1 unless $PARAMS{'token'}
111 0 1 if ($@)
114 0 0 if $this->{'ON'}{'error'}
119 1 0 if $PARAMS{'timestamp'}
130 0 1 if $this->{'DEBUG'}
133 0 1 if $this->{'DEBUG'}
137 1 0 if (ref $fullbody eq 'HASH')
146 1 0 if ($method eq 'connect')
148 1 0 if ($body and ref $body eq 'HASH' and $body->{'client'})
150 0 1 if $this->{'DEBUG'}
152 0 1 if ($this->{'MAX_ALIVE'})
159 0 0 if ($late > $this->{'MAX_ALIVE'})
160 0 0 if $this->{'DEBUG'}
169 1 0 if ($sub)
171 1 0 if ($uid)
182 0 0 if $this->{'ON'}{'error'}
190 0 0 if $this->{'DEBUG'}
191 0 0 if $this->{'ON'}{'ws_closed'}
224 0 0 unless $PARAMS{'channel'}
225 0 0 unless $PARAMS{'data'}
245 0 0 if $this->{'WSHANDLE'}
247 0 0 if $sub
263 0 0 unless $channel =~ /^\$/
265 0 0 unless $PARAMS{'client'}
279 0 0 unless $headers->{'Status'} == 200
433 0 0 if $this->{'DEBUG'}