Branch Coverage

blib/lib/Centrifugo/Client.pm
Criterion Covered Total %
branch 14 52 26.9


line true false branch
98 0 1 unless $PARAMS{'user'}
99 0 1 unless $PARAMS{'timestamp'}
100 0 1 unless $PARAMS{'token'}
104 0 1 if ($@)
107 0 0 if $this->{'ON'}{'error'}
112 1 0 if $PARAMS{'timestamp'}
123 0 1 if $this->{'DEBUG'}
126 0 1 if $this->{'DEBUG'}
129 1 0 if (ref $body eq 'HASH')
138 1 0 if ($method eq 'connect')
140 1 0 if ($body and ref $body eq 'HASH' and $body->{'client'})
142 0 1 if $this->{'DEBUG'}
147 1 0 if ($sub)
149 1 0 if ($uid)
157 1 0 unless ($^O =~ /Win/i)
162 0 0 if $this->{'ON'}{'error'}
169 0 0 if $this->{'DEBUG'}
170 0 0 if $this->{'ON'}{'ws_closed'}
202 0 0 unless $PARAMS{'channel'}
203 0 0 unless $PARAMS{'data'}
211 0 0 if $this->{'DEBUG'}
224 0 0 if $this->{'WSHANDLE'}
226 0 0 if $sub
245 0 0 unless $channel
252 0 0 if $this->{'DEBUG'}
311 0 0 if $this->{'DEBUG'}