Branch Coverage

blib/lib/WebService/LiveJournal/Client.pm
Criterion Covered Total %
branch 0 128 0.0


line true false branch
44 0 0 if $port != 80
55 0 0 if $self->{'mode'} ne 'cookie'
60 0 0 if ($self->{'mode'} eq 'cookie') { }
0 0 elsif ($self->{'mode'} eq 'challenge') { }
64 0 0 unless defined $response
77 0 0 unless defined $response
98 0 0 unless defined $response
101 0 0 if defined $h->{'faultString'}
102 0 0 if defined $h->{'faultCode'}
109 0 0 if ($fastserver)
114 0 0 if ($h->{'friendgroups'})
153 0 0 if ($selecttype eq 'syncitems') { }
0 0 elsif ($selecttype eq 'day') { }
0 0 elsif ($selecttype eq 'lastn') { }
0 0 elsif ($selecttype eq 'one') { }
155 0 0 if defined $arg{'lastsync'}
159 0 0 unless (defined $arg{'day'} and defined $arg{'month'} and defined $arg{'year'})
170 0 0 if defined $arg{'howmany'}
171 0 0 if defined $arg{'max'}
172 0 0 if defined $arg{'beforedate'}
184 0 0 if $arg{'truncate'}
185 0 0 if $arg{'prefersubject'}
187 0 0 if $arg{'usejournal'}
188 0 0 if $arg{'journal'}
191 0 0 unless defined $response
192 0 0 if ($selecttype eq 'one') { }
194 0 0 unless @{$response->value->{'events'};} > 0
210 0 0 @_ == 1 ? :
222 0 0 if ref $_[-1] eq 'CODE'
228 0 0 if (defined $arg{'last_sync'})
238 0 0 unless defined $response
243 0 0 unless ($item->{'item'} =~ /^(.)-(\d+)$/)
250 0 0 if $count == $total
254 0 0 if $@
264 0 0 if defined $arg{'friendlimit'}
265 0 0 if defined $arg{'limit'}
266 0 0 if $arg{'complete'}
268 0 0 unless defined $response
269 0 0 if ($arg{'complete'}) { }
290 0 0 if defined $arg{'friendoflimit'}
291 0 0 if defined $arg{'limit'}
293 0 0 unless defined $response
304 0 0 unless defined $response
315 0 0 if defined $journal_name
318 0 0 unless defined $response
334 0 0 unless defined $response
346 0 0 if ($_ % 2) { }
355 0 0 unless defined $response
398 0 0 if ($self->{'mode'} eq 'challenge')
401 0 0 if (ref $response) { }
403 0 0 if ($response->is_fault)
414 0 0 if ($count < 5 and $response =~ /HTTP server error: Method Not Allowed/i)
460 0 0 if (ref $response) { }
462 0 0 if ($response->is_fault)
474 0 0 if ($count < 5 and $response =~ /HTTP server error: Method Not Allowed/i)
499 0 0 unless $http_response->is_success
513 0 0 unless defined $h{'success'}
514 0 0 if $h{'success'} ne 'OK'
532 0 0 unless defined $response
545 0 0 if ($id =~ /^L-(\d+)$/)
551 0 0 if $count == $total
554 0 0 unless defined $response
572 0 0 if ($self->{'mode'} eq 'challenge')
575 0 0 unless defined $h