Branch Coverage

blib/lib/Tvh/Htsp/Client.pm
Criterion Covered Total %
branch 66 180 36.6


line true false branch
22 0 1 $self->{'epgdb_v3'} ? :
23 0 1 unless ($self->{'no_client'})
40 0 1 if $self->{'client'}
51 0 0 if ($reply->{'method'})
52 0 0 if ($reply->{'method'} eq 'channelAdd') { }
0 0 elsif ($reply->{'method'} eq 'initialSyncCompleted') { }
67 0 0 if (LooksLike::integer($channel) and $channel > 100000000) { }
72 0 0 if ($reply->{'channelName'} and $reply->{'channelId'} eq "$channel") { }
86 0 0 if ($reply->{'method'})
87 0 0 if ($reply->{'method'} eq 'channelAdd') { }
0 0 elsif ($reply->{'method'} eq 'initialSyncCompleted') { }
97 0 0 if ($chan_nam_id->{$channel}) { }
0 0 elsif ($chan_num_id->{$channel}) { }
0 0 elsif (LooksLike::integer($channel)) { }
134 0 0 if $self->{'debug_info'}
135 0 0 if $self->{'debug_info'}
137 0 0 if $self->{'debug_info'}
138 0 0 if $self->{'debug_info'}
149 0 0 if $buffer
153 0 0 unless $buffer
154 0 0 if $self->{'debug_info'}
155 0 0 if $self->{'debug_info'}
159 0 0 if $self->{'debug_info'}
161 0 0 if $length == 0 and not $buffer and $self->{'msg'}{'method'} ne "enableAsyncMetadata"
163 0 0 if ($length > 10000000 and $self->{'debug_info'})
170 0 0 if $self->{'debug_info'}
172 0 0 unless $buffer0
173 0 0 if $self->{'debug_info'}
174 0 0 if $self->{'debug_info'}
177 0 0 if ($length <= length $buffer)
179 0 0 if $self->{'debug_info'}
183 0 0 if $self->{'debug_info'}
193 0 7 if $self->{'debug_info'} and not $sub_message
196 5 2 if (ref $msg eq 'HASH') { }
2 0 elsif (ref $msg eq 'ARRAY') { }
202 0 2 unless $sub_message
212 0 25 if $self->{'debug_info'}
213 3 22 if (ref $val eq 'HASH') { }
2 20 elsif (ref $val eq 'ARRAY') { }
0 20 elsif (ref $val ne '') { }
7 13 elsif (LooksLike::integer($val)) { }
0 13 elsif (LooksLike::numeric($val)) { }
216 1 2 $ishash ? :
217 1 2 $ishash ? :
227 1 1 $ishash ? :
228 1 1 $ishash ? :
241 4 3 $ishash ? :
242 4 3 $ishash ? :
252 0 0 $ishash ? :
253 0 0 $ishash ? :
261 12 1 $ishash ? :
262 12 1 $ishash ? :
270 5 2 $sub_message ? :
282 0 4 if $self->{'debug_info'}
288 0 4 if $self->{'debug_info'}
308 3 40 if ($type == 1) { }
10 30 elsif ($type == 2) { }
26 4 elsif ($type == 3) { }
1 3 elsif ($type == 4) { }
3 0 elsif ($type == 5) { }
0 0 elsif ($type == 7) { }
0 0 elsif ($type == 8) { }
0 0 elsif ($type == 6) { }
310 0 3 if $self->{'debug_info'}
312 1 2 if (ref $bd eq 'HASH') { }
2 0 elsif (ref $bd eq 'ARRAY') { }
313 1 0 unless $$bd{"$name"}
331 7 3 if (ref $bd eq 'HASH') { }
3 0 elsif (ref $bd eq 'ARRAY') { }
337 0 10 if $self->{'debug_info'}
342 18 8 if (ref $bd eq 'HASH') { }
8 0 elsif (ref $bd eq 'ARRAY') { }
348 0 26 if $self->{'debug_info'}
353 1 0 if (ref $bd eq 'HASH') { }
0 0 elsif (ref $bd eq 'ARRAY') { }
359 0 1 if $self->{'debug_info'}
363 0 3 if $self->{'debug_info'}
365 2 1 if (ref $bd eq 'HASH') { }
1 0 elsif (ref $bd eq 'ARRAY') { }
366 2 0 unless $$bd{"$name"}
381 0 0 $datalength ? :
382 0 0 if (ref $bd eq 'HASH') { }
0 0 elsif (ref $bd eq 'ARRAY') { }
388 0 0 if $self->{'debug_info'}
393 0 0 if (ref $bd eq 'HASH') { }
0 0 elsif (ref $bd eq 'ARRAY') { }
399 0 0 if $self->{'debug_info'}
404 0 0 if (ref $bd eq 'HASH') { }
0 0 elsif (ref $bd eq 'ARRAY') { }
410 0 0 if $self->{'debug_info'}